1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/tanying-pchecker

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
В этом репозитории не указан файл с открытой лицензией (LICENSE). При использовании обратитесь к конкретному описанию проекта и его зависимостям в коде.
Клонировать/Скачать
CheckerWindow.py 1010
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
ying.tan Отправлено 24.10.2014 11:55 45ab42f
#!/usr/bin/python
# -*- coding: utf8 -*-
__author__ = 'Tan Ying<ying.tan@tcl.com>'
import os
from Tkinter import *
import tkMessageBox
def callback():
result = os.system('python PortingChecker')
tkMessageBox.showinfo('Porting Checker','Checking successful!')
quit()
width_scale = 1
height_scale = 0.5
rt = Tk()
rt.resizable(False,False)
rt.title("Porting Checker")
rt.update() # update window ,must do
curWidth = rt.winfo_reqwidth() # get current width
curHeight = rt.winfo_height() # get current height
scnWidth,scnHeight = rt.maxsize() # get screen width and height
win_width = curWidth * width_scale
win_height = curHeight * height_scale
# now generate configuration information
tmpcnf = '%dx%d+%d+%d'%(win_width, win_height, (scnWidth-curWidth)/2, (scnHeight-curHeight)/2)
rt.geometry(tmpcnf)
info = Label(rt, text='hi tanya')
info.pack(fill=Y,expand=1)
run = Button(rt, text='start checking...', anchor = 'center', width = 15, height = 1, command=callback)
run.pack()
rt.mainloop()

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/tanying-pchecker.git
git@api.gitlife.ru:oschina-mirror/tanying-pchecker.git
oschina-mirror
tanying-pchecker
tanying-pchecker
master