Commits

Sven Hendriks  committed 4bf065c

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

  • Participants
  • Parent commits c8ccad8

Comments (0)

Files changed (1)

File 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)