comparison python/codeedit.py @ 279:2ccd57b1d78c

Fix register allocator to do burn2 OK
author Windel Bouwman
date Sat, 12 Oct 2013 09:56:23 +0200
parents 046017431c6a
children 02385f62f250
comparison
equal deleted inserted replaced
278:9fca39eebe50 279:2ccd57b1d78c
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 import sys 3 import sys
4 import os
4 from PyQt4.QtCore import * 5 from PyQt4.QtCore import *
5 from PyQt4.QtGui import * 6 from PyQt4.QtGui import *
6 import inspect 7 import inspect
7 8
8 GAP = 5 9 GAP = 5
260 self.ic.setFocus() 261 self.ic.setFocus()
261 super().setFocus() 262 super().setFocus()
262 263
263 def setFileName(self, fn): 264 def setFileName(self, fn):
264 self.filename = fn 265 self.filename = fn
265 if not fn: 266 if fn:
267 fn = os.path.basename(fn)
268 else:
266 fn = 'Untitled' 269 fn = 'Untitled'
267 self.setWindowTitle(fn) 270 self.setWindowTitle(fn)
268 271
269 def getFileName(self): 272 def getFileName(self):
270 return self.filename 273 return self.filename