I know how to create a button with one of the stock pixmaps and labels
by using the appropriate wx.ID_* constants in the constructor. Is there
any way to change the appearance of such a button to another stock icon
and label after creation. Simply doing button.SetId(wx.ID_whatever)
doesn't seem to work.
Also, to repeat a question from a couple of days ago: Is there a
standard idiom for implementing the basic Edit menu options (Copy, Cut,
Paste, Delete) portably in a dialog with multiple text controls?
Thanks,
Jay
···
--
Jay Bloodworth <jbloodworth@sc.rr.com>
AOL IM: gaufqwi Yahoo! IM: augustin_damonk BSW: quarks
Hi Jay,
Jay Bloodworth wrote:
I know how to create a button with one of the stock pixmaps and labels
by using the appropriate wx.ID_* constants in the constructor. Is there
any way to change the appearance of such a button to another stock icon
and label after creation. Simply doing button.SetId(wx.ID_whatever)
doesn't seem to work.
Don't know, but why are you not creating it correctly in the first place?
Also, to repeat a question from a couple of days ago: Is there a
standard idiom for implementing the basic Edit menu options (Copy, Cut,
Paste, Delete) portably in a dialog with multiple text controls?
Did you see the drag and drop stuff in the wxPython demo (section Clipboard and DnD) and the following wiki pages:
http://wiki.wxpython.org/index.cgi/DragAndDrop
http://wiki.wxpython.org/index.cgi/DragAndDropWithFolderMovingAndRearranging
Thanks,
Jay
See you
Werner
Werner F. Bruhin wrote:
Hi Jay,
Jay Bloodworth wrote:
I know how to create a button with one of the stock pixmaps and labels
by using the appropriate wx.ID_* constants in the constructor. Is there
any way to change the appearance of such a button to another stock icon
and label after creation. Simply doing button.SetId(wx.ID_whatever)
doesn't seem to work.
Don't know, but why are you not creating it correctly in the first place?
How do we do it in, say wxglade, in a custom dialog?
- Sandip
···
--
Sandip Bhattacharya * Puroga Technologies * sandip@puroga.com
Work: http://www.puroga.com * Home/Blog: http://www.sandipb.net/blog
PGP/GPG Signature: 51A4 6C57 4BC6 8C82 6A65 AE78 B1A1 2280 A129 0FF3