[Feature] Add wx.Button support for image direction
See original GitHub issueOn adding an image to the button, method SetBitmap has second parameter dir
to put the picture above the label (wx.TOP), on the left or right or below.
Adding of the line to the “Code to be inserted after”, such as
self.myButton.SetBitmapPosition(wx.TOP)
doesn’t help, because it’s called (in __init__
) before the image is assigned (in __set_properties
).
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top Results From Across the Web
wx.Button — wxPython Phoenix 4.2.0 documentation
1 wx. Button supports showing both text and an image (currently only when using wxMSW, wxGTK or OSX/Cocoa ports), see SetBitmap and SetBitmapLabel ......
Read more >wxpython button - Python Tutorial - Pythonspot
wxPython supports having images on buttons. Only a minor change is needed to display an image on a button. While the function is...
Read more >wxPython - Image on button in Python - GeeksforGeeks
In this particular article we will learn how can we add image to a button in GUI using wxPython. This can be achieved...
Read more >wxPython: Change Button Image - Stack Overflow
Details: I create a class for wx.Panel. The class has a constructor. The class has two buttons. When you press the first button,...
Read more >Erlang -- wxButton
1 wxButton supports showing both text and an image (currently only when using wxMSW, wxGTK or wxOSX/Cocoa ports), see SetBitmap() (not implemented in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
1.0.0a1 is online.
I will look into this. Seems to be a useful feature that I did not know before… As workaround, the master branch should work. There the “code to be inserted after” and also the properties code will be inserted after the SetBitmap call.