commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/navigator/src GNObjects.py UIwxpython.py


From: James Thompson
Subject: gnue/navigator/src GNObjects.py UIwxpython.py
Date: Wed, 13 Feb 2002 16:59:40 -0500

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     James Thompson <address@hidden> 02/02/13 16:59:39

Modified files:
        navigator/src  : GNObjects.py UIwxpython.py 

Log message:
        fixed window startup size on win32
        start of default path support for running forms (broken on win32)

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/navigator/src/GNObjects.py.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/navigator/src/UIwxpython.py.diff?tr1=1.4&tr2=1.5&r1=text&r2=text

Patches:
Index: gnue/navigator/src/GNObjects.py
diff -c gnue/navigator/src/GNObjects.py:1.3 gnue/navigator/src/GNObjects.py:1.4
*** gnue/navigator/src/GNObjects.py:1.3 Wed Feb 13 15:38:42 2002
--- gnue/navigator/src/GNObjects.py     Wed Feb 13 16:59:39 2002
***************
*** 27,33 ****
  # NOTES:
  #
  
! import sys, string, os
  from gnue.common import GObjects, GDebug, GConfig
  import GNParser
  
--- 27,33 ----
  # NOTES:
  #
  
! import sys, string, os, os.path
  from gnue.common import GObjects, GDebug, GConfig
  import GNParser
  
***************
*** 56,73 ****
  
    def _runForm(self, step):
  
      formCommand = GConfig.get('runFormCommand','')
  
      if not formCommand:
        formCommand = "gfcvs"
  
!     GDebug.printMesg(1,'Running "%s on form %s "'%(formCommand,step.location))
  
      if sys.platform != 'win32':
!       
os.spawnlpe(os.P_NOWAIT,formCommand,formCommand,step.location,os.environ)
      else:
        # TODO: Not tested
!       os.spawnle(os.P_NOWAIT,formCommand,formCommand,step.location,os.environ)
  
    def _runApp(self, step):
  
--- 56,80 ----
  
    def _runForm(self, step):
  
+     print "FOOO"
      formCommand = GConfig.get('runFormCommand','')
  
      if not formCommand:
        formCommand = "gfcvs"
  
!     if os.path.basename(step.location) == step.location:
!       formfile = 
os.environ['INSTALL_PREFIX']+'/'+GConfig.get('FormDir')+"/"+step.location
!     else:
!       formfile = step.location
! 
!     GDebug.printMesg(1,'Running "%s on form %s "'%(formCommand,formfile))
  
      if sys.platform != 'win32':
!       os.spawnlpe(os.P_NOWAIT,formCommand,formCommand,formfile,os.environ)
      else:
        # TODO: Not tested
!       print "I should run ",formCommand,formfile
!       os.spawnle(os.P_NOWAIT,formCommand,formCommand,formfile,os.environ)
  
    def _runApp(self, step):
  
Index: gnue/navigator/src/UIwxpython.py
diff -c gnue/navigator/src/UIwxpython.py:1.4 
gnue/navigator/src/UIwxpython.py:1.5
*** gnue/navigator/src/UIwxpython.py:1.4        Wed Feb 13 15:38:42 2002
--- gnue/navigator/src/UIwxpython.py    Wed Feb 13 16:59:39 2002
***************
*** 42,54 ****
      self.MainLoop()
  
    def OnInit(self):
!     self.frame = wxFrame(NULL, -1, "Nothing")
      EVT_CLOSE(self.frame,self.OnClose)
!     self.frame.Show(true)
      self.list = wxListCtrl(self.frame, -1, style=wxLC_LIST|wxLC_SINGLE_SEL)
      EVT_LIST_ITEM_ACTIVATED(self.frame, 
self.list.GetId(),self.OnItemActivated)
      EVT_LIST_ITEM_SELECTED(self.frame, self.list.GetId(),self.OnItemSelected)
      self.buildMenu(self.processes)
      return 1
  
    def OnClose(self, event):
--- 42,57 ----
      self.MainLoop()
  
    def OnInit(self):
!     self.frame = wxFrame(NULL, -1, "Nothing", size=wxSize(500,250))
!     self.frame.SetSize(wxSize(500,250))
      EVT_CLOSE(self.frame,self.OnClose)
!     self.frame.Fit()
      self.list = wxListCtrl(self.frame, -1, style=wxLC_LIST|wxLC_SINGLE_SEL)
      EVT_LIST_ITEM_ACTIVATED(self.frame, 
self.list.GetId(),self.OnItemActivated)
      EVT_LIST_ITEM_SELECTED(self.frame, self.list.GetId(),self.OnItemSelected)
      self.buildMenu(self.processes)
+     self.list.Fit()
+     self.frame.Show(true)
      return 1
  
    def OnClose(self, event):



reply via email to

[Prev in Thread] Current Thread [Next in Thread]