def NiceFontForPlatform(self):
if wx.Platform == "__WXMSW__":
- return wx.Font(10, wx.MODERN, wx.NORMAL, wx.NORMAL)
+ font = wx.Font(10, wx.MODERN, wx.NORMAL, wx.NORMAL)
else:
- return wx.Font(12, wx.MODERN, wx.NORMAL, wx.NORMAL, False)
+ font = wx.Font(12, wx.MODERN, wx.NORMAL, wx.NORMAL, False)
+ if wx.Platform == "__WXMAC__":
+ font.SetNoAntiAliasing()
+ return font
def UnixKeyHack(self, key):
#
def MoveLeft(self, event):
if self.cx == 0:
if self.cy == 0:
- wxBell()
+ wx.Bell()
else:
self.cVert(-1)
self.cx = self.CurrentLineLength()
linelen = self.CurrentLineLength()
if self.cx == linelen:
if self.cy == len(self.lines) - 1:
- wxBell()
+ wx.Bell()
else:
self.cx = 0
self.cVert(1)