This commit is contained in:
LSaldyt
2017-10-11 19:58:03 -06:00
parent c90dbd91e7
commit 67fdcc70e7
3 changed files with 3846 additions and 753 deletions

2
.gitignore vendored
View File

@ -26,3 +26,5 @@ pip-log.txt
# Editors # Editors
.*.swp .*.swp
output

File diff suppressed because it is too large Load Diff

View File

@ -17,17 +17,17 @@ class MainApplication(ttk.Frame):
self.parent = parent self.parent = parent
self.create_widgets() self.create_widgets()
self.columnconfigure(0, weight=1) self.columnconfigure(0)
self.rowconfigure(0, weight=1) self.rowconfigure(0)
def create_widgets(self): def create_widgets(self):
"""Contains all widgets in main application.""" """Contains all widgets in main application."""
main_label = ttk.Label(self, text="abc:abd::ijk:?", background='black', foreground='white') main_label = ttk.Label(self, text="abc:abd::ijk:?", background='black', foreground='white')
main_label.grid(column=0, row=0, columnspan=9, rowspan=4) main_label.grid(column=0, row=0, columnspan=9, rowspan=4, sticky=tk.N+tk.S+tk.E+tk.W)
self.widgets['main'] = main_label self.widgets['main'] = main_label
temp_label = ttk.Label(self, text='temp') temp_label = ttk.Label(self, text='temp')
temp_label.grid(column=9, row=0, rowspan=1, sticky=tk.E) temp_label.grid(column=9, row=0, rowspan=1, sticky=tk.N+tk.S+tk.E+tk.W)
self.widgets['temp'] = temp_label self.widgets['temp'] = temp_label
def update_slipnodes(self, slipnodes): def update_slipnodes(self, slipnodes):
@ -40,7 +40,7 @@ class MainApplication(ttk.Frame):
text = text='{}\n({})'.format(name, amount) text = text='{}\n({})'.format(name, amount)
if name not in self.widgets: if name not in self.widgets:
l = ttk.Label(self, text=text) l = ttk.Label(self, text=text)
l.grid(column=column*2, columnspan=2, row=row+3, sticky=tk.SE) l.grid(column=column*2, columnspan=2, row=row+3, sticky=tk.N+tk.S+tk.E+tk.W)
self.widgets[name] = l self.widgets[name] = l
else: else:
self.widgets[name]['text'] = text self.widgets[name]['text'] = text