Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

from wireframe GUI design to python tkinter

import tkinter as tkclass MainWindow(tk.Frame):def __init__(self, pRoot, **kwargs): super().__init__(pRoot, kwargs) self.pLabel = tk.Label(self, text=”Hello”) self.pLabel.pack() if “__main__” == __name__: pApp = tk.Tk() pMainWindow = MainWindow(pApp) pMainWindow.grid() pApp.mainloop()
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #wireframe #GUI #design #python #tkinter
ADD COMMENT
Topic
Name
5+5 =