Hi, this is
Platform: GTK
Python Version: 2.7.3 on linux2
Dabo Version: 0.9.9
UI Version: 2.8.12.1 on wxGTK (gtk2)
I'm getting a warning :
(python:15313): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to
allocate widget with width -5 and height 17
I don't know if I should ignore it or not.
If I take "border=10" out from append1x() in pgParametros.afterInit()
method the warning disappears.
The code is :
----------------------------------------------------------------------------------------------------------
class pnlParametros(dabo.ui.dPanel):
def initProperties(self):
self.StatusText="Para programar la lectora"
class pgParametros(dabo.ui.dPage):
def initProperties(self):
self.Caption = 'Parámetros'
self.StatusText = 'Para programar la lectora'
def afterInit(self):
pnl = self.pnl = pnlParametros(self)
bsz = dabo.ui.dBorderSizer(self, 'v')
bsz.append1x(pnl)
self.Sizer.append1x(bsz, border=10)
class pgModulo(dabo.ui.dPage):
def initProperties(self):
self.Caption = 'Módulo'
self.StatusText = 'Tarjetas habilitadas en la lectora'
class pgEditar(dabo.ui.dPage):
def initProperties(self):
self.Caption = 'Editar'
self.StatusText = 'Contenidos de la base de datos'
class MainForm(dabo.ui.dForm):
def initProperties(self):
self.Caption = 'ProXimax IV'
# self.MenuBarClass = None
def afterInit(self):
self.Centered = True
self.SetMinSize((500, 350))
pnl = self.pnl = dabo.ui.dPanel(self,
BackColor='darkgrey')
self.Sizer.append1x(pnl)
pnl.Sizer = dabo.ui.dSizer('v')
pgFrm = dabo.ui.dPageFrame(pnl,
TabPosition='Bottom',
BorderStyle='Raised',
UpdateInactivePages=False,
UseSmartFocus=True,
OnPageChanged=self.onPageChanged)
pg = pgFrm.appendPage(pgCls=pgParametros)
pg = pgFrm.appendPage(pgCls=pgModulo)
pg = pgFrm.appendPage(pgCls=pgEditar)
pnl.Sizer.insert(0, pgFrm, 'x', 1, border=10)
pnl.layout()
def onPageChanged(self, evt):
print 'Página:', evt.newPageNum
if __name__ == "__main__":
app = dabo.dApp()
app.MainFormClass = MainForm
app.start()
--------------------------------------------------------------------------------------------------------------------
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]