Skip to content

Commit

Permalink
Update node_menu.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Akascape authored May 20, 2023
1 parent 77643e5 commit 7d54d36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tknodesystem/node_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def __init__(self, attach, button_color=None, height: int = 300, width: int = 25
self.button_num = 0
self.node = {}
self.padding = 0
self.focus_something = False

self.withdraw()
if sys.platform.startswith("win"):
Expand All @@ -43,6 +44,7 @@ def __init__(self, attach, button_color=None, height: int = 300, width: int = 25
self.transient(self.master)
self.attach.bind("<Button-1>", lambda e: self._withdraw(), add="+")
self.attach.bind("<Double-Button-2>", self.popup, add="+")
self.focus_something = True
else:
self.attributes("-type", "splash")
self.transparent_color = '#000001'
Expand Down Expand Up @@ -159,6 +161,7 @@ def _iconify(self, x=None, y=None):
self.focus_set()
self.search_entry.focus_set()
self._deiconify()
self.focus_something: self.node[0].focus_set()
self.place_dropdown(x,y)

def _attach_key_press(self, command):
Expand Down

0 comments on commit 7d54d36

Please sign in to comment.