Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

should i make tkinter in classes ? , Best way to structure a tkinter application?

class Navbar(tk.Frame): ...
class Toolbar(tk.Frame): ...
class Statusbar(tk.Frame): ...
class Main(tk.Frame): ...

class MainApplication(tk.Frame):
    def __init__(self, parent, *args, **kwargs):
        tk.Frame.__init__(self, parent, *args, **kwargs)
        self.statusbar = Statusbar(self, ...)
        self.toolbar = Toolbar(self, ...)
        self.navbar = Navbar(self, ...)
        self.main = Main(self, ...)

        self.statusbar.pack(side="bottom", fill="x")
        self.toolbar.pack(side="top", fill="x")
        self.navbar.pack(side="left", fill="y")
        self.main.pack(side="right", fill="both", expand=True)
Comment

PREVIOUS NEXT
Code Example
Python :: python remove none from dict 
Python :: merge two dict python 3 
Python :: python size of linked list 
Python :: check strings last letter python 
Python :: max pooling tf keras 
Python :: python get list of files in directory 
Python :: smtplib not sending email 
Python :: how to practise python 
Python :: python get os 
Python :: pre commit python 
Python :: python mp4 to mp3 
Python :: sort dictionary by value python 
Python :: python cut string after character 
Python :: dunder pyhton 
Python :: python remove multiple characters from string 
Python :: install flask on linux mint for python3 
Python :: display 2d numpy array as image 
Python :: s = 1 + 2 + ... + n in python 
Python :: normal distribution in python 
Python :: plt.imshow not showing image 
Python :: python turtle clear screen 
Python :: python tensorflow is not defined 
Python :: import word_tokenize 
Python :: how to rotate image in pygame 
Python :: string to float python 
Python :: python sentence splitter 
Python :: separate path python 
Python :: jaccard distance python 
Python :: integer colomn to datetime pandas python 
Python :: python recursive sum of digit 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =