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?
--
View this message in context:
http://old.nabble.com/Pycon-2010-Tutorial-Doc-tp27973199p27983563.html
Sent from the dabo-users mailing list archive at Nabble.com.
_______________________________________________
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]