On Monday 22 March 2010 01:45:32 am FraserB wrote:
> FraserB wrote:
> > I love this new document...
> >
> > One little puzzle for me is in this little piece of simple code that Ed
> > included.
> > Everything works as I would expect provided I leave out the
> > ForeColor="blue".
> > If I insert that attribute, no text displays. I have also tried other
> > colors.
> > I'm running under Ubuntu 8.10
> >
> > import dabo
> > dabo.ui.loadUI("wx")
> >
> > class HelloPyConForm(dabo.ui.dForm):
> >     def afterInit(self):
> >         self.Caption = "Hello PyCon Form"
> >         self.lblHello = dabo.ui.dLabel(self,
> >                 Caption="Hello PyCon", FontSize=24,
> >                 ForeColor="blue")
> >
> > app = dabo.dApp()
> > app.MainFormClass = HelloPyConForm
> > app.start()
> >
> > Note:
> > If I open the app command window and create another label, then set its
> > attributes including ForeColor, with the same code it is perfectly happy.
> >
> > Or if I leave that attribute out when running the app, then set the
> > ForeColor from the command window it does it fine but issues error
> > messages.
>
> Running further tests gets even more interesting...
> Test 1 - If I add a second label, that one shows fine. The first is still
> invisible.
>
> Test 2 - If I also include a position attribute on the first label eg
> Left=100 then it shows fine.
> But now label 2 is invisible.
>
> Test 3 -  If I also include a position attribute on the second label eg
> Top=30 then both label 1 and 2 show fine.
>
> Thoughts?

Wow!

I have copied and run your code without any problems (the text is large and 
blue).  I know you are running ubuntu 8.10 but what versions of python, 
wxPython and Dabo are you running?  You can use the help->about menu to 
determine the versions you are running.

Johnf


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to