is there a way to refresh a wxBitmapButton so that when i change the image on the button it will show the new image, the only way i can achieve this efect is to Destroy() the button and recreate it in the same spot but im having trouble getting it to place into the FlexGridSizer, it doesnt seem to be inside the sizer at all
Try:
<bitmapbuttonobj>.Show(False)
<bitmapbuttonobj>.Show(True)
That should force a repaint.
Christoper L. Spencer
CTO ROXX, LLC
4515 Leslie Ave.
Cincinnati, OH
45242
TEL: 513-545-7057
EMAIL: chris@roxx.biz
···
On Tue, 22 Aug 2006 09:48:25 -0700, "justin mcguire" <jherrico@gmail.com> wrote:
is there a way to refresh a wxBitmapButton so that when i change the image
on the button it will show the new image, the only way i can achieve this
efect is to Destroy() the button and recreate it in the same spot but im
having trouble getting it to place into the FlexGridSizer, it doesnt seem to
be inside the sizer at all
that does force a repaint but it doesnt change the picture on the button
···
On 8/22/06, Chris Spencer <cspencer@cinci.rr.com > wrote:
Try:
.Show(False)
.Show(True)That should force a repaint.
Christoper L. Spencer
CTO ROXX, LLC
4515 Leslie Ave.
Cincinnati, OH
45242
TEL: 513-545-7057
EMAIL: chris@roxx.bizOn Tue, 22 Aug 2006 09:48:25 -0700, “justin mcguire” > > jherrico@gmail.com wrote:
is there a way to refresh a wxBitmapButton so that when i change the image
on the button it will show the new image, the only way i can achieve thisefect is to Destroy() the button and recreate it in the same spot but im
having trouble getting it to place into the FlexGridSizer, it doesnt seem to
be inside the sizer at all
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org
justin mcguire wrote:
is there a way to refresh a wxBitmapButton so that when i change the image on the button it will show the new image, the only way i can achieve this efect is to Destroy() the button and recreate it in the same spot but im having trouble getting it to place into the FlexGridSizer, it doesnt seem to be inside the sizer at all
This:
btn.SetBitmap(newBitmap)
btn.Refresh()
should do it. If not then it is a bug. Which platform and version are you using?
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
Are you doing the SetBitmap*() functions to set the new bitmaps before
attempting a refresh?
Works fine here...
Christoper L. Spencer
CTO ROXX, LLC
4515 Leslie Ave.
Cincinnati, OH
45242
TEL: 513-545-7057
EMAIL: chris@roxx.biz
···
On Tue, 22 Aug 2006 10:01:15 -0700, "justin mcguire" <jherrico@gmail.com> wrote:
that does force a repaint but it doesnt change the picture on the button
On 8/22/06, Chris Spencer <cspencer@cinci.rr.com> wrote:
Try:
<bitmapbuttonobj>.Show(False)
<bitmapbuttonobj>.Show(True)That should force a repaint.
Christoper L. Spencer
CTO ROXX, LLC
4515 Leslie Ave.
Cincinnati, OH
45242
TEL: 513-545-7057
EMAIL: chris@roxx.bizOn Tue, 22 Aug 2006 09:48:25 -0700, "justin mcguire" >> <jherrico@gmail.com> wrote:
>is there a way to refresh a wxBitmapButton so that when i change the
image
>on the button it will show the new image, the only way i can achieve this
>efect is to Destroy() the button and recreate it in the same spot but im
>having trouble getting it to place into the FlexGridSizer, it doesnt seem
to
>be inside the sizer at all---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
when i try to do .SetBitmap i get this error:
AttributeError: ‘BitmapButton’ object has no attribute ‘SetBitmap’
im using windows xp and wxpython 2.5 with python 2.4
···
On 8/22/06, Chris Spencer cspencer@cinci.rr.com wrote:
Are you doing the SetBitmap*() functions to set the new bitmaps before
attempting a refresh?Works fine here…
Christoper L. Spencer
CTO ROXX, LLC
4515 Leslie Ave.
Cincinnati, OH
45242
TEL: 513-545-7057EMAIL: chris@roxx.biz
On Tue, 22 Aug 2006 10:01:15 -0700, “justin mcguire” > jherrico@gmail.com wrote:
that does force a repaint but it doesnt change the picture on the button
On 8/22/06, Chris Spencer cspencer@cinci.rr.com wrote:
Try:
.Show(False)
.Show(True)That should force a repaint.
Christoper L. Spencer
CTO ROXX, LLC
4515 Leslie Ave.
Cincinnati, OH
45242
TEL: 513-545-7057EMAIL: chris@roxx.biz
On Tue, 22 Aug 2006 09:48:25 -0700, “justin mcguire” > >> <jherrico@gmail.com > > wrote:
is there a way to refresh a wxBitmapButton so that when i change the
image
on the button it will show the new image, the only way i can achieve thisefect is to Destroy() the button and recreate it in the same spot but im
having trouble getting it to place into the FlexGridSizer, it doesnt seem
to
be inside the sizer at all
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
There is no such method as "SetBitmap"
You must use "SetBitmapLabel"
I'd suggest looking at the reference docs under wxBitmapButton for
more information.
Christoper L. Spencer
CTO ROXX, LLC
4515 Leslie Ave.
Cincinnati, OH
45242
TEL: 513-545-7057
EMAIL: chris@roxx.biz
···
On Tue, 22 Aug 2006 11:03:47 -0700, "justin mcguire" <jherrico@gmail.com> wrote:
when i try to do <btn>.SetBitmap i get this error:
AttributeError: 'BitmapButton' object has no attribute 'SetBitmap'
im using windows xp and wxpython 2.5 with python 2.4
On 8/22/06, Chris Spencer <cspencer@cinci.rr.com> wrote:
Are you doing the SetBitmap*() functions to set the new bitmaps before
attempting a refresh?Works fine here...
Christoper L. Spencer
CTO ROXX, LLC
4515 Leslie Ave.
Cincinnati, OH
45242
TEL: 513-545-7057
EMAIL: chris@roxx.bizOn Tue, 22 Aug 2006 10:01:15 -0700, "justin mcguire" >> <jherrico@gmail.com> wrote:
>that does force a repaint but it doesnt change the picture on the button
>
>On 8/22/06, Chris Spencer <cspencer@cinci.rr.com> wrote:
>>
>> Try:
>> <bitmapbuttonobj>.Show(False)
>> <bitmapbuttonobj>.Show(True)
>>
>> That should force a repaint.
>>
>> Christoper L. Spencer
>> CTO ROXX, LLC
>> 4515 Leslie Ave.
>> Cincinnati, OH
>> 45242
>> TEL: 513-545-7057
>> EMAIL: chris@roxx.biz
>>
>> On Tue, 22 Aug 2006 09:48:25 -0700, "justin mcguire" >> >> <jherrico@gmail.com> wrote:
>>
>> >is there a way to refresh a wxBitmapButton so that when i change the
>> image
>> >on the button it will show the new image, the only way i can achieve
this
>> >efect is to Destroy() the button and recreate it in the same spot but
im
>> >having trouble getting it to place into the FlexGridSizer, it doesnt
seem
>> to
>> >be inside the sizer at all
>>
>> ---------------------------------------------------------------------
>> 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
unless im reading it wrong Robin told me:
This:
btn.SetBitmap(newBitmap) btn.Refresh()
should do it. If not then it is a bug. Which platform and version are
you using?
–
Robin Dunn
Software Craftsmanhttp://wxPython.org Java give you jitters? Relax with wxPython!
in a previous reply, which is why i did it
···
On 8/22/06, Chris Spencer cspencer@cinci.rr.com wrote:
There is no such method as “SetBitmap”
You must use “SetBitmapLabel”
I’d suggest looking at the reference docs under wxBitmapButton for
more information.Christoper L. Spencer
CTO ROXX, LLC
4515 Leslie Ave.
Cincinnati, OH
45242
TEL: 513-545-7057
EMAIL: chris@roxx.bizOn Tue, 22 Aug 2006 11:03:47 -0700, “justin mcguire” > < > jherrico@gmail.com> wrote:
when i try to do .SetBitmap i get this error:
AttributeError: ‘BitmapButton’ object has no attribute ‘SetBitmap’
im using windows xp and wxpython 2.5 with python 2.4
On 8/22/06, Chris Spencer cspencer@cinci.rr.com wrote:
Are you doing the SetBitmap*() functions to set the new bitmaps before
attempting a refresh?
Works fine here…
Christoper L. Spencer
CTO ROXX, LLC
4515 Leslie Ave.
Cincinnati, OH
45242TEL: 513-545-7057
EMAIL: chris@roxx.bizOn Tue, 22 Aug 2006 10:01:15 -0700, “justin mcguire” > >> < > jherrico@gmail.com> wrote:
that does force a repaint but it doesnt change the picture on the button
On 8/22/06, Chris Spencer < > cspencer@cinci.rr.com> wrote:
Try:
.Show(False)
.Show(True)That should force a repaint.
Christoper L. Spencer
CTO ROXX, LLC
4515 Leslie Ave.
Cincinnati, OH45242
TEL: 513-545-7057
EMAIL: chris@roxx.bizOn Tue, 22 Aug 2006 09:48:25 -0700, “justin mcguire” > > >> >> jherrico@gmail.com wrote:
is there a way to refresh a wxBitmapButton so that when i change the
imageon the button it will show the new image, the only way i can achieve
this
efect is to Destroy() the button and recreate it in the same spot but
imhaving trouble getting it to place into the FlexGridSizer, it doesnt
seem
to
be inside the sizer at all
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
Robin was wrong. Please look at the docs.
Christoper L. Spencer
CTO ROXX, LLC
4515 Leslie Ave.
Cincinnati, OH
45242
TEL: 513-545-7057
EMAIL: chris@roxx.biz
···
On Tue, 22 Aug 2006 11:27:29 -0700, "justin mcguire" <jherrico@gmail.com> wrote:
unless im reading it wrong Robin told me:
This:
btn.SetBitmap(newBitmap)
btn.Refresh()should do it. If not then it is a bug. Which platform and version are
you using?--
Robin Dunn
Software Craftsman
http://wxPython.org/> Java give you jitters? Relax
with wxPython!in a previous reply, which is why i did it
On 8/22/06, Chris Spencer <cspencer@cinci.rr.com> wrote:
There is no such method as "SetBitmap"
You must use "SetBitmapLabel"
I'd suggest looking at the reference docs under wxBitmapButton for
more information.Christoper L. Spencer
CTO ROXX, LLC
4515 Leslie Ave.
Cincinnati, OH
45242
TEL: 513-545-7057
EMAIL: chris@roxx.bizOn Tue, 22 Aug 2006 11:03:47 -0700, "justin mcguire" >> <jherrico@gmail.com> wrote:
>when i try to do <btn>.SetBitmap i get this error:
>
>AttributeError: 'BitmapButton' object has no attribute 'SetBitmap'
>
>im using windows xp and wxpython 2.5 with python 2.4
>
>On 8/22/06, Chris Spencer <cspencer@cinci.rr.com> wrote:
>>
>> Are you doing the SetBitmap*() functions to set the new bitmaps before
>> attempting a refresh?
>>
>> Works fine here...
>>
>> Christoper L. Spencer
>> CTO ROXX, LLC
>> 4515 Leslie Ave.
>> Cincinnati, OH
>> 45242
>> TEL: 513-545-7057
>> EMAIL: chris@roxx.biz
>>
>> On Tue, 22 Aug 2006 10:01:15 -0700, "justin mcguire" >> >> <jherrico@gmail.com> wrote:
>>
>> >that does force a repaint but it doesnt change the picture on the
button
>> >
>> >On 8/22/06, Chris Spencer <cspencer@cinci.rr.com> wrote:
>> >>
>> >> Try:
>> >> <bitmapbuttonobj>.Show(False)
>> >> <bitmapbuttonobj>.Show(True)
>> >>
>> >> That should force a repaint.
>> >>
>> >> Christoper L. Spencer
>> >> CTO ROXX, LLC
>> >> 4515 Leslie Ave.
>> >> Cincinnati, OH
>> >> 45242
>> >> TEL: 513-545-7057
>> >> EMAIL: chris@roxx.biz
>> >>
>> >> On Tue, 22 Aug 2006 09:48:25 -0700, "justin mcguire" >> >> >> <jherrico@gmail.com> wrote:
>> >>
>> >> >is there a way to refresh a wxBitmapButton so that when i change
the
>> >> image
>> >> >on the button it will show the new image, the only way i can
achieve
>> this
>> >> >efect is to Destroy() the button and recreate it in the same spot
but
>> im
>> >> >having trouble getting it to place into the FlexGridSizer, it
doesnt
>> seem
>> >> to
>> >> >be inside the sizer at all
>> >>
>> >>
---------------------------------------------------------------------
>> >> 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
justin mcguire wrote:
unless im reading it wrong Robin told me:
This:
btn.SetBitmap(newBitmap)
btn.Refresh()should do it. If not then it is a bug. Which platform and version are
you using?
Sorry, I was thinking about wx.StaticBitmap. SetBitmapLabel should work for wx.BitmapButton.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
that did it thanks
···
On 8/22/06, Robin Dunn robin@alldunn.com wrote:
justin mcguire wrote:
unless im reading it wrong Robin told me:
This: btn.SetBitmap(newBitmap) btn.Refresh() should do it. If not then it is a bug. Which platform and version are
you using?
Sorry, I was thinking about wx.StaticBitmap. SetBitmapLabel should work
for wx.BitmapButton.–
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