some fixes in the compatibility class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -559,7 +559,7 @@ class AnalogClockWindow(AnalogClock):
|
|||||||
if m:
|
if m:
|
||||||
self.SetHandSize(m, MINUTE)
|
self.SetHandSize(m, MINUTE)
|
||||||
if s:
|
if s:
|
||||||
self.SetHandSize(h, SECOND)
|
self.SetHandSize(s, SECOND)
|
||||||
|
|
||||||
def SetHandColours(self, h=None, m=None, s=None):
|
def SetHandColours(self, h=None, m=None, s=None):
|
||||||
if h and not m and not s:
|
if h and not m and not s:
|
||||||
@@ -572,8 +572,8 @@ class AnalogClockWindow(AnalogClock):
|
|||||||
self.SetHandBorderColour(m, MINUTE)
|
self.SetHandBorderColour(m, MINUTE)
|
||||||
self.SetHandFillColour(m, MINUTE)
|
self.SetHandFillColour(m, MINUTE)
|
||||||
if s:
|
if s:
|
||||||
self.SetHandBorderColour(h, SECOND)
|
self.SetHandBorderColour(s, SECOND)
|
||||||
self.SetHandFillColour(h, SECOND)
|
self.SetHandFillColour(s, SECOND)
|
||||||
|
|
||||||
def SetTickColours(self, h=None, m=None):
|
def SetTickColours(self, h=None, m=None):
|
||||||
if not m:
|
if not m:
|
||||||
@@ -589,13 +589,13 @@ class AnalogClockWindow(AnalogClock):
|
|||||||
if h:
|
if h:
|
||||||
self.SetTickSize(h, HOUR)
|
self.SetTickSize(h, HOUR)
|
||||||
if m:
|
if m:
|
||||||
self.SetTickSize(h, MINUTE)
|
self.SetTickSize(m, MINUTE)
|
||||||
|
|
||||||
def SetTickFontss(self, h=None, m=None):
|
def SetTickFontss(self, h=None, m=None):
|
||||||
if h:
|
if h:
|
||||||
self.SetTickFont(h, HOUR)
|
self.SetTickFont(h, HOUR)
|
||||||
if m:
|
if m:
|
||||||
self.SetTickFont(h, MINUTE)
|
self.SetTickFont(m, MINUTE)
|
||||||
|
|
||||||
|
|
||||||
def SetMinutesOffset(self, o):
|
def SetMinutesOffset(self, o):
|
||||||
|
Reference in New Issue
Block a user