Shy HU
Shy HU

Reputation: 119

UI in wxpython corners

Right now, I am using wxpython to make a UI. But I find out that under windows invironment, the four corners are all angles. enter image description here

Is it possible to change the form of the four corners and make them more smooth like this?

enter image description here

Upvotes: 3

Views: 854

Answers (1)

acattle
acattle

Reputation: 3113

Short answer: no.

WxPython is based on WxWidgets and, as you can see on WxWidget's homepage:

Unlike other cross-platform toolkits, wxWidgets gives its applications a truly native look and feel because it uses the platform's native API rather than emulating the GUI

Basically this means that WxWidgets and, by extension, WxPython are great choices if you want to design cross platform GUIs that automatically conform to each platform's GUI style. The downside of this is that it is not the best choice of toolkits if you want to make custom GUI elements, like those rounded corners.

I'm not too familiar with Tkinter (another popular Python GUI toolkit) but this previous SO question seems to be exactly what you want. Perhaps you should experiment using Tkinnter instead of WxPython.

----EDIT----
It turns out I was wrong. There IS a way to do it in WxPython, as evidenced by this SO question. However, I maintain that WxPython is best suited to native-style windows and if you want to make completely custom UIs then you'll find better support working with another toolkit.

Upvotes: 3

Related Questions