The UseAntiAliasing is off by default on wxMac. Add a menu item to

the Py* Apps for experimenting with it.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-02-23 22:36:24 +00:00
parent 0eaf23edfa
commit 9513c5b609
5 changed files with 43 additions and 15 deletions

View File

@@ -607,15 +607,18 @@ class Editor:
def getStatus(self):
"""Return (filepath, line, column) status tuple."""
pos = self.window.GetCurrentPos()
line = self.window.LineFromPosition(pos) + 1
col = self.window.GetColumn(pos)
if self.buffer:
name = self.buffer.doc.filepath or self.buffer.name
if self.window:
pos = self.window.GetCurrentPos()
line = self.window.LineFromPosition(pos) + 1
col = self.window.GetColumn(pos)
if self.buffer:
name = self.buffer.doc.filepath or self.buffer.name
else:
name = ''
status = (name, line, col)
return status
else:
name = ''
status = (name, line, col)
return status
return ('', 0, 0)
def getText(self):
"""Return contents of editor."""