Sven Hendriks avatar Sven Hendriks committed 4bf065c

Cleaned node widgets up a bit, so they look a bit cleaner now.

Comments (0)

Files changed (1)

lyne/gui/treewidget.py

             file=os.path.join(LYNE_BASE_PATH,
             'data', 'images_3rd_party', 'sound.gif'))
 
+        self._bottom_frame = Tkinter.Frame(self)
+        self._bottom_frame.pack(fill=Tkinter.BOTH)
+
         self._sound_button = Tkinter.Button(
-            self, image=self._icon_ref, width=16, height=16,
+            self._bottom_frame, image=self._icon_ref, width=16, height=16,
             cursor='arrow')
         self._sound_button.pack(side=Tkinter.RIGHT)
 
         self._tree = Tree(ConstantNode()) if not tree else tree
 
         self._widget = Tkinter.Entry(
-            self, 
+            self._bottom_frame, 
             width=5, 
             validate="key",
             validatecommand=(self.register(self._text_entered), '%W', '%P')
         self._tree = Tree(CountingNode()) if not tree else tree
 
         self._widget = Tkinter.Label(
-            self, text='Counter', background='white', width=5,
+            self._bottom_frame, text='Counter', background='white', width=5,
             cursor='arrow')
         self._widget.pack(fill=Tkinter.X)
 
                 self._tree.node._operator, msg)
 
         self._widget = ttk.Combobox(
-            self, values=OperatorNode.allowed_operators,
+            self._bottom_frame, values=OperatorNode.allowed_operators,
             state='readonly', width=4, cursor='arrow')
         self._widget.pack(fill=Tkinter.X)
         self._widget.current(idx)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.