tp.mainloop() tp.destroy() if ag.answer != None: st.autoset = ag.answer['autoset'] st.autotime = ag.answer['autotime'] st.autogoals = ag.answer['values'] if __name__ == '__main__': import DebugWin import IniAid if len(sys.argv) < 2: DebugWin.Take_stdout() DebugWin.Take_stderr() root = Tk() Pmw.initialise(root) #maxw,maxh=h_wide_screens(root) root.maxw = 640 root.maxh = 480 root.withdraw() # this is now broken ans = change(root, 'CCIRI', None) if ans: print ans
## sbb.pack(expand=1) ## fs.pack(side='bottom') Button(f,text='Done',command=_setback).pack(side='right',ipady=10) Button(f,text='Select new stretched',command=_selnews).pack(side='right',ipady=10) Button(f,text='Select new center',command=_selnewn).pack(side='right',ipady=10) Button(f,text='Select new unsized',command=_selnewu).pack(side='right',ipady=10) f.pack(side='bottom',expand=1,ipady=30) top.mainloop() return canv.answer if __name__ == '__main__': import DebugWin DebugWin.Take_all() import os,sys,glob,os.path import Pmw root=Tk() if 0: root.geometry('200x150+10+10') root.maxw=200 #800 root.maxh=150 #600 else: root.geometry('800x600+10+10') root.maxw=800 root.maxh=600 #Label(root,text='Whoa').pack() choose_image(root,r'c:\EEGer\Preferences\Images')