Harm van der Heijden (H.v.d.Heijden@phys.tue.nl)"""
-import random,re,string
+import random,re
from wxPython.wx import *
m = reg.search(self.words[index:])
if m and len(m.groups()[0]) >= self.min_length: break
n = n - 1
- if n: return string.lower(m.groups()[0])
+ if n: return m.groups()[0].lower()
return "error"
menubar = wxMenuBar()
menubar.Append(menu, "Game")
menu = wxMenu()
- #menu.Append(1010, "Internal", "Use internal dictionary", TRUE)
+ #menu.Append(1010, "Internal", "Use internal dictionary", True)
menu.Append(1011, "ASCII File...")
urls = [ 'wxPython home', 'http://wxPython.org/',
'slashdot.org', 'http://slashdot.org/',
def OnGameDemo(self, event):
frame = HangmanDemoFrame(self.wf, self, -1, wxDefaultPosition, self.GetSize())
- frame.Show(TRUE)
+ frame.Show(True)
def OnDictFile(self, event):
fd = wxFileDialog(self)
wf = WordFetcher(defaultfile)
frame = MyFrame(None, wf)
self.SetTopWindow(frame)
- frame.Show(TRUE)
- return TRUE
+ frame.Show(True)
+ return True
wf = WordFetcher(defaultfile)
win = MyFrame(frame, wf)
frame.otherWin = win
- win.Show(true)
+ win.Show(True)
#----------------------------------------------------------------------