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
>
>
>   

I went and tested on a machine running Ubuntu 9.10.
First time I ran it, the bottom of the font was about 10 pixels down 
from the top left corner of the screen. I used command window to change 
its position. Then I closed it. There after it ran perfectly. I guess it 
saved the preferences.

On Ubuntu 8.10 machine if I add Bottom=0 then I get a similar result in 
the display. But if I have no positioning it vanishes. Is it possible 
that it has somehow a value that positions it off screen?

Platform: GTK
Python Version: 2.5.2 on linux2
Dabo Version: Version 0.9.2; Revision 5592
UI Version: 2.8.8.0 on wxGTK (gtk2)


_______________________________________________
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