Various odds and ends, minor fixes, and cleanups...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -142,7 +142,8 @@ class wxGenButton(wxControl):
|
||||
highlightClr = wxSystemSettings_GetSystemColour(wxSYS_COLOUR_BTNHIGHLIGHT)
|
||||
self.shadowPen = wxPen(shadowClr, 1, wxSOLID)
|
||||
self.highlightPen = wxPen(highlightClr, 1, wxSOLID)
|
||||
self.focusIndPen = wxPen(textClr, 1, wxUSER_DASH)
|
||||
##self.focusIndPen = wxPen(textClr, 1, wxUSER_DASH)
|
||||
self.focusIndPen = wxPen(textClr, 1, wxDOT)
|
||||
|
||||
|
||||
def SetBackgroundColour(self, colour):
|
||||
@@ -209,7 +210,7 @@ class wxGenButton(wxControl):
|
||||
bw = self.bezelWidth
|
||||
dc.SetLogicalFunction(wxINVERT)
|
||||
self.focusIndPen.SetColour(self.GetForegroundColour())
|
||||
self.focusIndPen.SetDashes([1,2,1,2]) # This isn't quite working the way I expected...
|
||||
##self.focusIndPen.SetDashes([1,2,1,2]) # This isn't quite working the way I expected...
|
||||
dc.SetPen(self.focusIndPen)
|
||||
dc.SetBrush(wxTRANSPARENT_BRUSH)
|
||||
dc.DrawRectangle(bw+2,bw+2, w-bw*2-4, h-bw*2-4)
|
||||
|
@@ -8,6 +8,12 @@
|
||||
#----------------------------------------------------------------------------
|
||||
from wxPython.wx import *
|
||||
|
||||
if wxPlatform == '__WXGTK__':
|
||||
msg = "Due to a bug in wxGTK this class is not available on that "\
|
||||
"platform for this release. Sorry."
|
||||
raise ImportError, msg
|
||||
|
||||
|
||||
_DOCKTHRESHOLD = 25
|
||||
|
||||
class wxFloatBar(wxToolBar):
|
||||
|
@@ -19,7 +19,7 @@ from shape import *
|
||||
#----------------------------------------------------------------------------
|
||||
_msg = """\
|
||||
Since the wxWindows library now includes its own sizers, the
|
||||
classes in wxPython.lib.sizers have been depreciated. Please
|
||||
classes in wxPython.lib.sizers have been deprecated. Please
|
||||
see the Reference Manual for details of the new classes.
|
||||
|
||||
To contiunue using wxPython.lib.sizers without this
|
||||
@@ -34,7 +34,7 @@ from wxPython.wx import wxMessageDialog, wxOK, wxICON_EXCLAMATION, wxPlatform
|
||||
if not os.environ.has_key('WXP_OLDSIZERS'):
|
||||
if wxPlatform == '__WXMSW__':
|
||||
dlg = wxMessageDialog(None, _msg,
|
||||
"Depreciated Feature",
|
||||
"Deprecated Feature",
|
||||
wxOK | wxICON_EXCLAMATION)
|
||||
dlg.ShowModal()
|
||||
dlg.Destroy()
|
||||
|
Reference in New Issue
Block a user