16 |
# write to the Free Software Foundation, Inc., 59 Temple Place |
# write to the Free Software Foundation, Inc., 59 Temple Place |
17 |
# - Suite 330, Boston, MA 02111-1307, USA. |
# - Suite 330, Boston, MA 02111-1307, USA. |
18 |
# |
# |
19 |
# Copyright 2000-2002 Free Software Foundation |
# Copyright 2000-2003 Free Software Foundation |
20 |
# |
# |
21 |
# |
# |
22 |
# FILE: |
# FILE: |
36 |
class GFPage(GFObj): |
class GFPage(GFObj): |
37 |
def __init__(self, parent=None): |
def __init__(self, parent=None): |
38 |
GFObj.__init__(self, parent,"GFPage") |
GFObj.__init__(self, parent,"GFPage") |
39 |
self._inits = [self.initialize] |
self._inits = [self.initialize, self.init2] |
40 |
|
|
41 |
self._validTriggers = { 'PRE-FOCUSOUT': 'Pre-FocusOut', |
self._validTriggers = { |
42 |
|
'PRE-FOCUSOUT': 'Pre-FocusOut', |
43 |
'POST-FOCUSOUT': 'Post-FocusOut', |
'POST-FOCUSOUT': 'Post-FocusOut', |
44 |
'PRE-FOCUSIN': 'Pre-FocusIn', |
'PRE-FOCUSIN': 'Pre-FocusIn', |
45 |
'POST-FOCUSIN': 'Post-FocusIn', |
'POST-FOCUSIN': 'Post-FocusIn', |
46 |
} |
} |
47 |
|
|
48 |
|
self._entryList = [] |
49 |
|
|
50 |
|
|
51 |
def initialize(self): |
def initialize(self): |
52 |
form = self.findParentOfType('GFForm') |
layout = self.findParentOfType('GFLayout') |
53 |
form._pageList.append(self) |
layout._pageList.append(self) |
54 |
|
|
55 |
|
def init2(self): |
56 |
|
# Get all focusable items, ordered correctly |
57 |
|
self._focusOrder = self._entryList # self.getFocusOrder() |
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
|