[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/designer/src Instance.py ToolFrame.py
From: |
Jason Cater |
Subject: |
gnue/designer/src Instance.py ToolFrame.py |
Date: |
Tue, 01 Jan 2002 13:31:59 -0500 |
CVSROOT: /home/cvs
Module name: gnue
Changes by: Jason Cater <address@hidden> 02/01/01 13:31:59
Modified files:
designer/src : Instance.py ToolFrame.py
Log message:
LayoutEditor window comes up by default and is a larger default size
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/designer/src/Instance.py.diff?cvsroot=OldCVS&tr1=1.34&tr2=1.35&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/designer/src/ToolFrame.py.diff?cvsroot=OldCVS&tr1=1.5&tr2=1.6&r1=text&r2=text
Patches:
Index: gnue/designer/src/Instance.py
diff -c gnue/designer/src/Instance.py:1.34 gnue/designer/src/Instance.py:1.35
*** gnue/designer/src/Instance.py:1.34 Fri Dec 7 21:43:18 2001
--- gnue/designer/src/Instance.py Tue Jan 1 13:31:59 2002
***************
*** 126,131 ****
--- 126,134 ----
self.tree = TreeView(self, self._form, vsplitter)
self.layoutEditorWindow = ToolFrame(self, "Layout Editor")
+ self.layoutEditorWindow.default_visible = 1
+ self.layoutEditorWindow.default_width = 450
+ self.layoutEditorWindow.default_height = 400
self.layoutEditor = LayoutEditor(self, self.layoutEditorWindow)
self.layoutEditorWindow.finalize()
Index: gnue/designer/src/ToolFrame.py
diff -c gnue/designer/src/ToolFrame.py:1.5 gnue/designer/src/ToolFrame.py:1.6
*** gnue/designer/src/ToolFrame.py:1.5 Mon Nov 19 21:00:16 2001
--- gnue/designer/src/ToolFrame.py Tue Jan 1 13:31:59 2002
***************
*** 33,51 ****
#
# Any tool frames inherit from this
! # It handles the Window menu and
# saving size/position/display settings
#
! class ToolFrame (wxFrame):
default_width = 200
default_height = 150
! def __init__(self, instance, title):
! if sys.platform[:3] == 'win':
style = wxFRAME_TOOL_WINDOW|wxMINIMIZE_BOX|wxRESIZE_BORDER| \
wxCAPTION|wxFRAME_FLOAT_ON_PARENT
! else:
style = wxMINIMIZE_BOX|wxRESIZE_BORDER|wxCAPTION
wxFrame.__init__(self, instance, -1, title, style=style)
--- 33,52 ----
#
# Any tool frames inherit from this
! # It handles the Window menu and
# saving size/position/display settings
#
! class ToolFrame (wxFrame):
default_width = 200
default_height = 150
+ default_visible = 0
! def __init__(self, instance, title):
! if sys.platform[:3] == 'win':
style = wxFRAME_TOOL_WINDOW|wxMINIMIZE_BOX|wxRESIZE_BORDER| \
wxCAPTION|wxFRAME_FLOAT_ON_PARENT
! else:
style = wxMINIMIZE_BOX|wxRESIZE_BORDER|wxCAPTION
wxFrame.__init__(self, instance, -1, title, style=style)
***************
*** 57,77 ****
# Add ourselves to the Window menu
menuID = wxNewId()
self.menu = self.instance._menubar.addTool(self, title)
!
EVT_CLOSE(self, self.OnClose)
-
- def finalize(self):
! self.SetPosition((
! RuntimeSettings.getint(self.runtime_section, 'x', -1),
RuntimeSettings.getint(self.runtime_section, 'y', -1)))
! self.SetSize((
! RuntimeSettings.getint(self.runtime_section, 'width',
self.default_width),
! RuntimeSettings.getint(self.runtime_section, 'height',
self.default_height)))
! if RuntimeSettings.getint(self.runtime_section, 'visible', 0):
self.show()
RuntimeSettings.registerRuntimeSettingHandler(self.instance, self)
--- 58,81 ----
# Add ourselves to the Window menu
menuID = wxNewId()
self.menu = self.instance._menubar.addTool(self, title)
!
EVT_CLOSE(self, self.OnClose)
! def finalize(self):
!
! self.SetPosition((
! RuntimeSettings.getint(self.runtime_section, 'x', -1),
RuntimeSettings.getint(self.runtime_section, 'y', -1)))
! self.SetSize((
! RuntimeSettings.getint(
! self.runtime_section, 'width', self.default_width),
! RuntimeSettings.getint(
! self.runtime_section, 'height', self.default_height)))
! if RuntimeSettings.getint(
! self.runtime_section, 'visible', self.default_visible):
self.show()
RuntimeSettings.registerRuntimeSettingHandler(self.instance, self)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue/designer/src Instance.py ToolFrame.py,
Jason Cater <=