[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/forms/src/uidrivers/wx UIdriver.py
From: |
Jason Cater |
Subject: |
gnue/forms/src/uidrivers/wx UIdriver.py |
Date: |
Tue, 08 Oct 2002 18:36:13 -0400 |
CVSROOT: /cvsroot/gnue
Module name: gnue
Changes by: Jason Cater <address@hidden> 02/10/08 18:36:13
Modified files:
forms/src/uidrivers/wx: UIdriver.py
Log message:
cleaned up some global variables to improve support for runForm and for
Navigator
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/forms/src/uidrivers/wx/UIdriver.py.diff?tr1=1.192&tr2=1.193&r1=text&r2=text
Patches:
Index: gnue/forms/src/uidrivers/wx/UIdriver.py
diff -c gnue/forms/src/uidrivers/wx/UIdriver.py:1.192
gnue/forms/src/uidrivers/wx/UIdriver.py:1.193
*** gnue/forms/src/uidrivers/wx/UIdriver.py:1.192 Mon Oct 7 19:11:33 2002
--- gnue/forms/src/uidrivers/wx/UIdriver.py Tue Oct 8 18:36:13 2002
***************
*** 418,423 ****
--- 418,424 ----
# Can be used by UI drivers to add more attributes to the creation event.
def _updateCreateEvent(self, event):
event.eventHandler = self.dispatchEvent
+ event.ui = self
return event
***************
*** 879,884 ****
--- 880,887 ----
def _createWidget(self, event, spacer):
object = event.object
+ self.__ui = event.ui
+ self.__ui.__notebookLoopTrap = 0
if object.tabbed:
tabstyle =self.tabStyles[object.tabbed]
***************
*** 902,913 ****
def notebookTabHandler(self,event):
if event.GetEventType() == wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING:
action = None
- global _LOOPTRAP
! if _LOOPTRAP == 0:
action = GFEvent('requestPAGE',event.GetSelection())
!
! _LOOPTRAP = not _LOOPTRAP # flip the value
if action:
self._eventHandler(action)
--- 905,916 ----
def notebookTabHandler(self,event):
if event.GetEventType() == wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING:
action = None
! if self.__ui.__notebookLoopTrap == 0:
action = GFEvent('requestPAGE',event.GetSelection())
! self.__ui.__notebookLoopTrap = 1
! else:
! self.__ui.__notebookLoopTrap == 0
if action:
self._eventHandler(action)
- gnue/forms/src/uidrivers/wx UIdriver.py, Jason Cater, 2002/10/07
- gnue/forms/src/uidrivers/wx UIdriver.py, Jason Cater, 2002/10/07
- gnue/forms/src/uidrivers/wx UIdriver.py,
Jason Cater <=
- gnue/forms/src/uidrivers/wx UIdriver.py, Jason Cater, 2002/10/09
- gnue/forms/src/uidrivers/wx UIdriver.py, Arturas Kriukovas, 2002/10/15
- gnue/forms/src/uidrivers/wx UIdriver.py, James Thompson, 2002/10/30
- gnue/forms/src/uidrivers/wx UIdriver.py, James Thompson, 2002/10/31