After bashing my head on the desk for being so stupid I fixed the

wxFloatBar for wxGTK the extremly EASY way...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2000-01-19 22:09:38 +00:00
parent a4625b8c3b
commit 8211bdcc03

View File

@@ -9,11 +9,33 @@
from wxPython.wx import * from wxPython.wx import *
if wxPlatform == '__WXGTK__': if wxPlatform == '__WXGTK__':
msg = "Due to a bug in wxGTK this class is not available on that "\ #
"platform for this release. Sorry." # For wxGTK all we have to do is set the wxTB_DOCKABLE flag
raise ImportError, msg #
class wxFloatBar(wxToolBar):
def __init__(self, parent, ID,
pos = wxDefaultPosition,
size = wxDefaultSize,
style = 0,
name = 'toolbar'):
wxToolBar.__init__(self, parent, ID, pos, size,
style|wxTB_DOCKABLE, name)
# these other methods just become no-ops
def SetFloatable(self, float):
pass
def IsFloating(self):
return 1
def GetTitle(self):
return ""
def SetTitle(self, title):
pass
else:
_DOCKTHRESHOLD = 25 _DOCKTHRESHOLD = 25
class wxFloatBar(wxToolBar): class wxFloatBar(wxToolBar):
@@ -252,13 +274,3 @@ class wxFloatBar(wxToolBar):