Is there a way to stop a wxPython application, under Windows XP, from
using the native system theme? I've got a program that works great
under Linux, but on Windows my special color coded buttons and
progress bars do not display properly. Windows redesigns the color
scheme for me.
Is there a way to stop a wxPython application, under Windows XP, from
using the native system theme?
No, as far as I know.
I've got a program that works great
under Linux, but on Windows my special color coded buttons and
progress bars do not display properly. Windows redesigns the color
scheme for me.
That's hard to believe if you have custom buttons/gauges for which you
handle the OnPaint event. Are you drawing these things yourself or are
you just changing the foreground/background colours for them? Few of
the widgets do not like it that much when you specify a
foreground/background colour (I don't know why).
Could you provide a sample that we may actually test? Or a screenshot
of what you mean?
Ok, I fixed the button issue. Windows doesn't do anything when I call
SetBackgroundColour on a ToggleButton. It works fine on a normal
button. I'll just have to live without the toggle functionality.
I am now having trouble with a Gauge control under both Linux and
Windows. Calls to SetBackgroundColour or SetForegroundColour don't
have any effect. Any ideas?
-Isaac
···
On 1/26/07, Andrea Gavana <andrea.gavana@gmail.com> wrote:
H Isaac,
> Is there a way to stop a wxPython application, under Windows XP, from
> using the native system theme?
No, as far as I know.
> I've got a program that works great
> under Linux, but on Windows my special color coded buttons and
> progress bars do not display properly. Windows redesigns the color
> scheme for me.
That's hard to believe if you have custom buttons/gauges for which you
handle the OnPaint event. Are you drawing these things yourself or are
you just changing the foreground/background colours for them? Few of
the widgets do not like it that much when you specify a
foreground/background colour (I don't know why).
Could you provide a sample that we may actually test? Or a screenshot
of what you mean?
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Ok, I fixed the button issue. Windows doesn't do anything when I call
SetBackgroundColour on a ToggleButton. It works fine on a normal
button. I'll just have to live without the toggle functionality.
Please enter a bug report about that, with a category of "wxMSW Specific"
I am now having trouble with a Gauge control under both Linux and
Windows. Calls to SetBackgroundColour or SetForegroundColour don't
have any effect. Any ideas?
The Gauge is an example of a widget where the theme always trumps what you set. There's nothing that can be done to change it programatically. To use custom colours you'll have to have a non-native gauge widget.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Do you know if someone has already written such a gauge? I'd hate to
create a custom control if one is already done.
-Isaac
···
On 1/26/07, Robin Dunn <robin@alldunn.com> wrote:
Isaac Wagner wrote:
> Ok, I fixed the button issue. Windows doesn't do anything when I call
> SetBackgroundColour on a ToggleButton. It works fine on a normal
> button. I'll just have to live without the toggle functionality.
Please enter a bug report about that, with a category of "wxMSW Specific"
>
> I am now having trouble with a Gauge control under both Linux and
> Windows. Calls to SetBackgroundColour or SetForegroundColour don't
> have any effect. Any ideas?
The Gauge is an example of a widget where the theme always trumps what
you set. There's nothing that can be done to change it programatically.
To use custom colours you'll have to have a non-native gauge widget.
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
While not exactly a full-blown gauge, I did post some code for a grid-based list with progress bars to make eMule-like UIs.
There's some code there that draw's pipe-looking progress bars. I don't have access to it here at home to send it again, but you can probably find it in the list's archives. If you don't you can drop me a note.
I think it should be quite easy to create a PyControl class that has my drawing code in its EVT_PAINT.
Isaac Wagner wrote:
···
Do you know if someone has already written such a gauge? I'd hate to
create a custom control if one is already done.
-Isaac
On 1/26/07, Robin Dunn <robin@alldunn.com> wrote:
Isaac Wagner wrote:
> Ok, I fixed the button issue. Windows doesn't do anything when I call
> SetBackgroundColour on a ToggleButton. It works fine on a normal
> button. I'll just have to live without the toggle functionality.
Please enter a bug report about that, with a category of "wxMSW Specific"
>
> I am now having trouble with a Gauge control under both Linux and
> Windows. Calls to SetBackgroundColour or SetForegroundColour don't
> have any effect. Any ideas?
The Gauge is an example of a widget where the theme always trumps what
you set. There's nothing that can be done to change it programatically.
To use custom colours you'll have to have a non-native gauge widget.
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
On 1/27/07, Eli Golovinsky <gooli@tuzig.com> wrote:
While not exactly a full-blown gauge, I did post some code for a
grid-based list with progress bars to make eMule-like UIs.
There's some code there that draw's pipe-looking progress bars. I don't
have access to it here at home to send it again, but you can probably
find it in the list's archives. If you don't you can drop me a note.
I think it should be quite easy to create a PyControl class that has my
drawing code in its EVT_PAINT.
Isaac Wagner wrote:
> Do you know if someone has already written such a gauge? I'd hate to
> create a custom control if one is already done.
>
> -Isaac
>
> On 1/26/07, Robin Dunn <robin@alldunn.com> wrote:
>> Isaac Wagner wrote:
>> > Ok, I fixed the button issue. Windows doesn't do anything when I call
>> > SetBackgroundColour on a ToggleButton. It works fine on a normal
>> > button. I'll just have to live without the toggle functionality.
>>
>> Please enter a bug report about that, with a category of "wxMSW
>> Specific"
>>
>> >
>> > I am now having trouble with a Gauge control under both Linux and
>> > Windows. Calls to SetBackgroundColour or SetForegroundColour don't
>> > have any effect. Any ideas?
>>
>> The Gauge is an example of a widget where the theme always trumps what
>> you set. There's nothing that can be done to change it programatically.
>> To use custom colours you'll have to have a non-native gauge widget.
>>
>> --
>> Robin Dunn
>> Software Craftsman
>> http://wxPython.org Java give you jitters? Relax with wxPython!
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
>> For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org