Just to show both label and bitmap on a button, I have installed wxpython version 2.9.5.0. When I set a label for the button, the bitmap will not be shown on it, while if I don’t set a label or don’t pass a label as an argument of the button constructor, the bitmap will be shown. Based on the wxpython documents, since version 2.9.1, button support both label and bitmap. Please help me, and let me know how I can fix it.
Just to show both label and bitmap on a button, I have installed
wxpython version 2.9.5.0. When I set a label for the button, the bitmap
will not be shown on it, while if I don't set a label or don't pass a
label as an argument of the button constructor, the bitmap will be
shown. Based on the wxpython documents, since version 2.9.1, button
support both label and bitmap. Please help me, and let me know how I can
fix it.
Platform? If you're on GTK then it may depend on some Gnome settings whether the button is able to display both. Does it work in the Button sample in the demo?
Hi Robin, sorry to jump on an old thread, but this is maybe the closest post I can seem to find. I’m running wxpython version 3.0.1.1 with gtk2 on Raspbian Jessie and I cannot get a button to work with a bitmap (unless I use the deprecated bitmapbutton). The demo also does not work.
I know in the documentation it states that GTK+ uses a global setting called gtk-button-images and if it’s false, no image will load, but for the life of me, I can’t find any information for how to 1) find that setting and see if it is indeed false, or 2) how to change the setting.
Any suggestions?
And as a first time poster, thanks so much for the amazingness that is wxpython.
-JD
···
On Tuesday, December 17, 2013 at 8:54:45 PM UTC-8, Robin Dunn wrote:
Just to show both label and bitmap on a button, I have installed
wxpython version 2.9.5.0. When I set a label for the button, the bitmap
will not be shown on it, while if I don’t set a label or don’t pass a
label as an argument of the button constructor, the bitmap will be
shown. Based on the wxpython documents, since version 2.9.1, button
support both label and bitmap. Please help me, and let me know how I can
fix it.
Platform? If you’re on GTK then it may depend on some Gnome settings
whether the button is able to display both. Does it work in the Button
sample in the demo?