El 10/09/13 12:21, Ed Leafe escribió:
On Sep 10, 2013, at 10:07 AM, Ricardo Aráoz <ricar...@gmail.com> wrote:
Platform: GTK
Python Version: 2.7.3 on linux2
Dabo Version: 0.9.13
UI Version: 2.8.12.1 on wxGTK (gtk2)
Is it possible that a bug has been introduced in PageFrame recently?
The tabs are no longer visible (they were a few weeks ago). They are there alright, and
when you click in their "space" they will change the page, but they are not
visible.
Demo works OK, but I'm using classes for the dPageFrame and for the dPages.
I don't see anything, but I'm running on OS X. Do you have a small program that
reproduces the problem?
-- Ed Leafe
Short program showing the issue.
I'm in Ubuntu 12.04, I can see the pages but not the tabs. Nevertheless
if I click right above the pages, where the tabs should be, I am able to
change pages.
---------------------------------------------------------------------------------------------------------
# -*- coding: utf-8 -*-
"""
Created on Tue Sep 10 13:11:43 2013
@author:
"""
import dabo
dabo.ui.loadUI('wx')
class pnlOne(dabo.ui.dPanel):
def afterInit(self):
self.Sizer = vs = dabo.ui.dSizer('v')
txt = dabo.ui.dLabel(self,
Caption='Page One',
FontSize=12,
FontBold=True)
vs.append1x(txt)
class pnlTwo(dabo.ui.dPanel):
def afterInit(self):
self.Sizer = vs = dabo.ui.dSizer('v')
txt = dabo.ui.dLabel(self,
Caption='Page Two',
FontSize=12,
FontBold=True)
vs.append1x(txt)
class pgOne(dabo.ui.dPage):
def initProperties(self):
self.Caption = 'PageOne'
def afterInit(self):
pnl = pnlOne(self)
vSzr = dabo.ui.dSizer('v')
vSzr.append1x(pnl)
self.Sizer.append1x(vSzr, border=10)
class pgTwo(dabo.ui.dPage):
def initProperties(self):
self.Caption = 'pgTwo'
def afterInit(self):
pnl = pnlTwo(self)
vSzr = dabo.ui.dSizer('v')
vSzr.append1x(pnl)
self.Sizer.append1x(vSzr, border=10)
class PfIssue(dabo.ui.dPageFrame):
def initProperties(self):
self.TabPosition = 'Top'
self.BorderStyle = 'Raised'
self.UpdateInactivePages = True
self.UseSmartFocus = True
def afterInit(self):
self.appendPage(pgOne)
self.appendPage(pgTwo)
class FrmIssue(dabo.ui.dForm):
def initProperties(self):
self.Caption = 'FrmIssue'
def afterInit(self):
self.Centered = True
self.SetMinSize((470, 520))
pnl = dabo.ui.dPanel(self,
BackColor='darkgrey')
pgFrm = PfIssue(self)
pnl.Sizer = dabo.ui.dSizer('v')
pnl.Sizer.insert(0, pgFrm, 'x', 1, border=10)
pnl.layout()
self.Sizer.append1x(pnl)
# Needed starting with wx 2.7, for the first control to have
the focus:
self.setFocus()
if __name__ == "__main__":
app = dabo.dApp()
app.MainFormClass = FrmIssue
app.start()
_______________________________________________
Post Messages to: Dabo-users@leafe.com
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/522f47dd.7040...@gmail.com