Added code for drop down widget but wasn't suitable for original usecase and I didn't find any other for now
This commit is contained in:
parent
1ca9fe3f6c
commit
627fd60235
@ -127,6 +127,8 @@ def main():
|
|||||||
map_widget.set_zoom(15)
|
map_widget.set_zoom(15)
|
||||||
map_widget.pack(pady=15)
|
map_widget.pack(pady=15)
|
||||||
|
|
||||||
|
#media_aqusition=TitledDropdown(root,"Media Aquisition",["unkown","Direct digital off of taking device","Received digitial unmodified from taking device","Received digital re-encoded and or metadata stripped","Received digital editied"],0)
|
||||||
|
|
||||||
#Window layout
|
#Window layout
|
||||||
img_label .grid(row=0,column=0,rowspan=6,sticky='n')
|
img_label .grid(row=0,column=0,rowspan=6,sticky='n')
|
||||||
title .grid(row=0,column=1,sticky="we")
|
title .grid(row=0,column=1,sticky="we")
|
||||||
@ -178,6 +180,19 @@ class TextScrollCombo(tk.Frame):
|
|||||||
def get(c,a,b):
|
def get(c,a,b):
|
||||||
return c.txt.get(a,b)
|
return c.txt.get(a,b)
|
||||||
|
|
||||||
|
#TODO: delete if unused before release
|
||||||
|
#class TitledDropdown(tk.Frame):
|
||||||
|
#
|
||||||
|
# def __init__(self, root_window, text, options, default_opt):
|
||||||
|
#
|
||||||
|
# super().__init__(root_window)
|
||||||
|
#
|
||||||
|
# self.titled_dropdown = tk.OptionMenu(self,tk.StringVar(value=options[default_opt]),*options)
|
||||||
|
# self.titled_dropdown.config(width=8)
|
||||||
|
# tk.Label(self, text=text, bg=background_color).pack(side=tk.LEFT)
|
||||||
|
# self.titled_dropdown.pack(fill=tk.X)
|
||||||
|
# def get(c):
|
||||||
|
# return c.titled_dropdown.get()
|
||||||
|
|
||||||
class TitledEntry(tk.Frame):
|
class TitledEntry(tk.Frame):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user