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.
If I change it to BackColor="blue" the text shows but there is no blue
anywhere apart from the title bar.
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 the following
error message.

(python:22998): Gtk-WARNING **:
/build/buildd/gtk+2.0-2.14.4/gtk/gtkwidget.c:9042: widget class `GtkPizza'
has no property named `row-ending-details'

So that is sounding more like need to do a Linux upgrade.

-- 
View this message in context: 
http://old.nabble.com/Pycon-2010-Tutorial-Doc-tp27973199p27973745.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]

Reply via email to