Commits

Henning Schröder committed 19b54eb

layout fixes

Comments (0)

Files changed (4)

 
 
 app = TApplication()
-container = TWidget(Pos=(20, 10), Size=(5, 10), WindowTitle="Tools")
+container = TWidget(Pos=(20, 10), Size=(20, 10), WindowTitle="Tools")
 vb = TVBoxLayout()
 container.setLayout(vb)
 b1 = TPushButton(container, Text="Button 1", Pos=(1, 0))
 b4 = TPushButton(container, Text="Button 4")
 hb.addWidget(b4)
 
-#app.run()
-app.close()
+app.run()
+#app.close()
 print b3.sizeHint(), b3.width()
 print b4.sizeHint(), b4.width()
 from tgui.twidget import TWidget
 
 
-class TAbstractButton(TWidget, AbstractTextWidgetMixin):
+class TAbstractButton(AbstractTextWidgetMixin, TWidget):
 
     clicked = Signal()
 
 
 
 class TFixedLayout(TLayout):
-
-    def invalidate(self):
-        pass
-
+    pass
 
 class TBoxLayout(TLayout):
     pass