WIP
This commit is contained in:
1420
copycat.log
1420
copycat.log
File diff suppressed because it is too large
Load Diff
@ -23,10 +23,10 @@ class MainApplication(ttk.Frame):
|
|||||||
def create_widgets(self):
|
def create_widgets(self):
|
||||||
"""Contains all widgets in main application."""
|
"""Contains all widgets in main application."""
|
||||||
|
|
||||||
main_label = tk.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)
|
||||||
self.widgets['main'] = main_label
|
self.widgets['main'] = main_label
|
||||||
temp_label = tk.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.E)
|
||||||
self.widgets['temp'] = temp_label
|
self.widgets['temp'] = temp_label
|
||||||
|
|
||||||
@ -39,8 +39,8 @@ class MainApplication(ttk.Frame):
|
|||||||
row += 1
|
row += 1
|
||||||
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 = tk.Label(self, text=text)
|
l = ttk.Label(self, text=text)
|
||||||
l.grid(column=column, row=row+3, sticky=tk.SE)
|
l.grid(column=column*2, columnspan=2, row=row+3, sticky=tk.SE)
|
||||||
self.widgets[name] = l
|
self.widgets[name] = l
|
||||||
else:
|
else:
|
||||||
self.widgets[name]['text'] = text
|
self.widgets[name]['text'] = text
|
||||||
|
|||||||
Reference in New Issue
Block a user