Skip to content

Commit

Permalink
Added menu without functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Yogesh Aggarwal committed Feb 9, 2020
1 parent 5bd8609 commit ce8f11b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import PySimpleGUI as sg

# sg.main()
sg.theme("Reddit")
values = None
win = None
Expand Down Expand Up @@ -502,7 +503,12 @@ def __init__(self):
super().__init__()
self.win = None
self.font = "SF UI Text"
self.menuLayout = [
["Tools", ["&Update data::_updateData_", "&Settings::_settings_"]],
["Help"]
]
self.layout = [
[sg.MenuBar(self.menuLayout)],
[sg.Text("Folder", font=(self.font, 18), pad=(0, 5, 0, 0))],
[
sg.Text("Location"),
Expand Down Expand Up @@ -608,7 +614,8 @@ def operate(self):
global win
win = self.win
self.action(values)

if event == "_settings_":
print("d")
if event == "_opArrange_":
self.win.Element("_arrangeKeyword_").Update(disabled=False) if values[
"_opArrange_"
Expand Down

0 comments on commit ce8f11b

Please sign in to comment.