commit-gnue
[Top][All Lists]
Advanced

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

gnue/designer/src RuntimeSettings.py ToolFrame.py


From: Jason Cater
Subject: gnue/designer/src RuntimeSettings.py ToolFrame.py
Date: Thu, 15 Nov 2001 19:01:22 -0500

CVSROOT:        /home/cvs
Module name:    gnue
Changes by:     Jason Cater <address@hidden>    01/11/15 19:01:22

Modified files:
        designer/src   : RuntimeSettings.py ToolFrame.py 

Log message:
        synching machines

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/designer/src/RuntimeSettings.py.diff?cvsroot=OldCVS&tr1=1.4&tr2=1.5&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/designer/src/ToolFrame.py.diff?cvsroot=OldCVS&tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: gnue/designer/src/RuntimeSettings.py
diff -u gnue/designer/src/RuntimeSettings.py:1.4 
gnue/designer/src/RuntimeSettings.py:1.5
--- gnue/designer/src/RuntimeSettings.py:1.4    Sat Jun 30 18:58:26 2001
+++ gnue/designer/src/RuntimeSettings.py        Thu Nov 15 19:01:22 2001
@@ -35,8 +35,10 @@
   except:
     pass
   location = os.environ['HOME']+'/.gnue/gnue-des.ini'
-else:
-  location = None
+elif sys.platform[:3] in ('win','mac'): 
+  location = 
os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])),'gnue-des.ini')
+else: 
+  location = 'gnue-des.ini'
 
 try: 
   config = ConfigParser.ConfigParser()
Index: gnue/designer/src/ToolFrame.py
diff -u gnue/designer/src/ToolFrame.py:1.1 gnue/designer/src/ToolFrame.py:1.2
--- gnue/designer/src/ToolFrame.py:1.1  Fri Jun 22 09:16:35 2001
+++ gnue/designer/src/ToolFrame.py      Thu Nov 15 19:01:22 2001
@@ -26,6 +26,7 @@
 # NOTES:
 #
 
+import os, sys
 import RuntimeSettings
 from wxPython.wx import *
 from gnue.common import GDebug, GConfig
@@ -42,8 +43,14 @@
   default_height = 150
 
   def __init__(self, instance, title): 
-    wxFrame.__init__(self, instance, -1, title, 
-      style=wxMINIMIZE_BOX|wxRESIZE_BORDER|wxCAPTION)#|wxFRAME_FLOAT_ON_PARENT)
+    if sys.platform[:3] == 'win': 
+      style = wxFRAME_TOOL_WINDOW|wx_MINIMIZE_BOX|wxRESIZE_BORDER| \
+              wxCAPTION|wxFRAME_FLOAT_ON_PARENT
+    else: 
+      style = wxMINIMIZE_BOX|wxRESIZE_BORDER|wxCAPTION
+
+    wxFrame.__init__(self, instance, -1, title, style=style)
+
     self.title = title
     self.runtime_section = "ToolFrame-%s" % string.replace(self.title,' ','')
     self.instance = instance



reply via email to

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