http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9751
Revision: 9751 Author: xqt Date: 2011-11-11 08:56:39 +0000 (Fri, 11 Nov 2011) Log Message: ----------- utf-8 coding
Modified Paths: -------------- trunk/pywikipedia/userinterfaces/wxpython_interface.py
Modified: trunk/pywikipedia/userinterfaces/wxpython_interface.py =================================================================== --- trunk/pywikipedia/userinterfaces/wxpython_interface.py 2011-11-11 08:50:34 UTC (rev 9750) +++ trunk/pywikipedia/userinterfaces/wxpython_interface.py 2011-11-11 08:56:39 UTC (rev 9751) @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- __version__ = '$Id$'
import sys; sys.path.append('..') @@ -9,6 +9,7 @@
app = wx.App()
+ class UI(terminal_interface.UI): def __init__(self): pass @@ -56,9 +57,9 @@ elif default and answer=='':# empty string entered return default
+ if __name__ == '__main__': ui = UI() print ui.input('Test?')
app.MainLoop() -