from tkinter import * from tkinter102 import MyGui mainwin = Tk() Label(mainwin, text=__name__).pack() popup = Toplevel() Label(popup, text='Attach').pack(side=LEFT) MyGui(popup).pack(side=RIGHT) mainwin.mainloop()
from tkinter import * from tkinter102 import MyGui # 应用主窗口 mainwin = Tk() Label(mainwin, text=__name__).pack() # 弹出窗口 popup = Toplevel() Label(popup, text='Attach').pack(side=LEFT) MyGui(popup).pack(side=RIGHT) # 附加myframe mainwin.mainloop()
from tkinter import * from tkinter102 import MyGui # главное окно приложения mainwin = Tk() Label(mainwin, text=__name__).pack() # окно диалога popup = Toplevel() Label(popup, text='Attach').pack(side=LEFT) MyGui(popup).pack(side=RIGHT) # присоединить виджеты mainwin.mainloop()
from tkinter import * from tkinter102 import MyGui # main app window mainwin = Tk() Label(mainwin, text=__name__).pack() # popup window popup = Toplevel() Label(popup, text='Attach').pack(side=LEFT) MyGui(popup).pack(side=RIGHT) # attach my frame mainwin.mainloop()
from tkinter import * from tkinter102 import MyGui # Main window app mainwin = Tk() Label(mainwin, text=__name__).pack() # Dialog window popup = Toplevel() Label(popup, text='Attach').pack(side=LEFT) MyGui(popup).pack(side=RIGHT) # Attach widgets mainwin.mainloop()