question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature] Add wx.Button support for image direction

See original GitHub issue

On 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:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
DietmarSchwertbergercommented, Aug 29, 2020

1.0.0a1 is online.

1reaction
DietmarSchwertbergercommented, May 19, 2020

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.

grafik

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found