On 2/11/13 7:57 AM, Adrian Klaver wrote:
> Platform: GTK
> Python Version: 2.7.2 on linux2
> Dabo Version: 0.9.5
> UI Version: 2.8.12.1 on wxGTK (gtk2)
> Revision 7314
>
>
> It seems dGridSizer is not working with borders. I can set DefaultBorder to a
> value
> and nothing happens. If I pass Border arguments to a control I see a border
> frame
> flash by when I load the form but it does not show up around the control or
> any where
> for that matter.
>
> dComboBox is not using BackColor.
>
> Am I missing something?
I've not ever used either dComboBox nor dGridSizer (well, I have some app-wizard
generated dGridSizers). I think Ed will be able to help with the dGridSizers,
but
backcolors and forecolors have been a bit troublesome with different controls on
different platforms for me, too.
Sometimes, it's a matter of when you set the property. There are 3 places to set
properties:
1) by sending to the constructor:
cbo = dabo.ui.dComboBox(self, BackColor=...,)
2) by setting in subclass initProperties():
class Cbo(dabo.ui.dComboBox):
def initProperties(self):
self.BackColor = ...
cbo = Cbo(self)
3) by setting the property after it is fully instantiated:
cbo = dabo.ui.dComboBox(self)
cbo.BackColor = ...
Please try each of these and if you notice that some work and others don't, let
us
know because we can use that information to hopefully fix it so it is
consistent on
all platforms.
Sometimes it comes down to the UI theme not wanting controls to be able to set
their
own colors, and I don't have a good answer for that case. This is definitely a
place
where we get inconsistencies between Mac, Windows, and Linux.
Paul
_______________________________________________
Post Messages to: [email protected]
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/[email protected]