Changeset 2697
- Timestamp:
- 01/16/07 08:44:07 (2 years ago)
- Files:
-
- trunk/dabo/ui/uiwx/dPageFrame.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dabo/ui/uiwx/dPageFrame.py
r2541 r2697 125 125 dd.SetSelection(pos) 126 126 127 128 129 127 128 import random 130 129 class _dPageFrame_test(dPageFrame): 131 130 def initProperties(self): 132 131 self.Width = 400 133 132 self.Height = 175 133 self.TabPosition = random.choice(("Top", "Bottom", "Left", "Right")) 134 134 135 135 def afterInit(self): 136 136 self.appendPage(caption="Introduction") 137 137 self.appendPage(caption="Chapter I") 138 self.appendPage(caption="Chapter 2") 139 140 def beforePageChange(self, fromPage, toPage): 141 # Don't allow the user to go from page 0 to page 2 142 if fromPage == 0 and toPage == 2: 143 return False 144 else: 145 return True 138 self.Pages[0].BackColor = "darkred" 139 self.Pages[1].BackColor = "darkblue" 146 140 147 141 def onPageChanged(self, evt): … … 153 147 self.Width = 400 154 148 self.Height = 175 149 self.TabPosition = random.choice(("Top", "Bottom", "Left", "Right")) 155 150 156 151 def afterInit(self): 157 152 self.appendPage(caption="Introduction") 158 153 self.appendPage(caption="Chapter I") 159 self.appendPage(caption="Chapter 2") 154 self.Pages[0].BackColor = "darkred" 155 self.Pages[1].BackColor = "darkblue" 160 156 161 157 def onPageChanged(self, evt): … … 167 163 self.Width = 400 168 164 self.Height = 175 165 self.TabPosition = random.choice(("Top", "Bottom", "Left", "Right")) 169 166 170 167 def afterInit(self): 171 168 self.appendPage(caption="Introduction") 172 169 self.appendPage(caption="Chapter I") 173 self.appendPage(caption="Chapter 2") 170 self.Pages[0].BackColor = "darkred" 171 self.Pages[1].BackColor = "darkblue" 174 172 175 173 def onPageChanged(self, evt): … … 177 175 178 176 177 179 178 if __name__ == "__main__": 180 179 import test
