[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/navigator/src GNClient.py UIwxpython.py UI...
From: |
Jason Cater |
Subject: |
gnue/navigator/src GNClient.py UIwxpython.py UI... |
Date: |
Tue, 08 Jan 2002 19:07:36 -0500 |
CVSROOT: /cvsroot/gnue
Module name: gnue
Changes by: Jason Cater <address@hidden> 02/01/08 19:07:36
Modified files:
navigator/src : GNClient.py UIwxpython.py
Added files:
navigator/src : UItext.py
Log message:
added a text-based (line-oriented) menu module
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/navigator/src/UItext.py?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/navigator/src/GNClient.py.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/navigator/src/UIwxpython.py.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
Patches:
Index: gnue/navigator/src/GNClient.py
diff -c gnue/navigator/src/GNClient.py:1.1 gnue/navigator/src/GNClient.py:1.2
*** gnue/navigator/src/GNClient.py:1.1 Tue Jan 8 17:16:55 2002
--- gnue/navigator/src/GNClient.py Tue Jan 8 19:07:36 2002
***************
*** 95,114 ****
# Initialize user interface (defaults to gui)
# If the DISPLAY var isn't set then switch to text
! if self.ui_type == 'gui' :
if os.environ.has_key('DISPLAY') or os.name != 'posix':
! from gnue.forms import UIwxpython
! self._ui=UIwxpython
else:
self.ui_type='text'
- if self.ui_type == 'pytext':
- from gnue.forms import UIpyncurses
- self._ui=UIpyncurses
-
if self.ui_type == 'text' :
! from gnue.forms import UIcurses
! self._ui=UIcurses
fileHandle = openResource(processFile)
nav = loadProcesses (fileHandle)
--- 95,108 ----
# Initialize user interface (defaults to gui)
# If the DISPLAY var isn't set then switch to text
! if self.ui_type == 'gui':
if os.environ.has_key('DISPLAY') or os.name != 'posix':
! import UIwxpython as interface
else:
self.ui_type='text'
if self.ui_type == 'text' :
! import UItext as interface
fileHandle = openResource(processFile)
nav = loadProcesses (fileHandle)
***************
*** 116,123 ****
# TODO: Um, reuse Form's UI :)
! import UIwxpython
! UIwxpython.Instance(nav).run()
if __name__ == '__main__':
GNClient().run()
--- 110,116 ----
# TODO: Um, reuse Form's UI :)
! interface.Instance(nav).run()
if __name__ == '__main__':
GNClient().run()
Index: gnue/navigator/src/UIwxpython.py
diff -c gnue/navigator/src/UIwxpython.py:1.1
gnue/navigator/src/UIwxpython.py:1.2
*** gnue/navigator/src/UIwxpython.py:1.1 Tue Jan 8 17:16:55 2002
--- gnue/navigator/src/UIwxpython.py Tue Jan 8 19:07:36 2002
***************
*** 19,25 ****
# - Suite 330, Boston, MA 02111-1307, USA.
#
# FILE:
! # GFParser.py
#
# DESCRIPTION:
# Set of classes that provide a menuing interface via wxPython
--- 19,25 ----
# - Suite 330, Boston, MA 02111-1307, USA.
#
# FILE:
! # UIwxpython.py
#
# DESCRIPTION:
# Set of classes that provide a menuing interface via wxPython
***************
*** 85,91 ****
def OnItemActivated(self, event):
!
object = self.selections[self.selection]
if object._type != 'GNStep':
--- 85,91 ----
def OnItemActivated(self, event):
!
object = self.selections[self.selection]
if object._type != 'GNStep':
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue/navigator/src GNClient.py UIwxpython.py UI...,
Jason Cater <=