savantas
savantas

Reputation: 455

wxpython get underlying GUI library

Is there a method call in wxpython that can be used to find out which native graphical user interface (wxGTK, wxOSX/Cocoa, wxX11, wxMSW, ...) it relies upon?

I want to include floatable and dockable (wx.TB_DOCKABLE) toolbars in my software. However this is a GTK only feature. I would therefore like to include a check and only make the toolbars dockable if possible.

Or should I do a platform check instead?

Upvotes: 0

Views: 34

Answers (1)

Rolf of Saxony
Rolf of Saxony

Reputation: 22443

Have you tried wx.version()?
I don't have access to other operating systems but under Linux:

>>> import wx
>>> wx.version()
'4.0.1 gtk2 (phoenix)'
>>> 

Looks like it should help.

Upvotes: 1

Related Questions