| | 136 | |
|---|
| | 137 | import random |
|---|
| | 138 | class _dPageFrame_test(dPageFrame): |
|---|
| | 139 | def initProperties(self): |
|---|
| | 140 | self.Width = 400 |
|---|
| | 141 | self.Height = 175 |
|---|
| | 142 | self.TabPosition = random.choice(("Top", "Bottom", "Left", "Right")) |
|---|
| | 143 | |
|---|
| | 144 | def afterInit(self): |
|---|
| | 145 | self.appendPage(caption="Introduction") |
|---|
| | 146 | self.appendPage(caption="Chapter I") |
|---|
| | 147 | self.Pages[0].BackColor = "darkred" |
|---|
| | 148 | self.Pages[1].BackColor = "darkblue" |
|---|
| | 149 | |
|---|
| | 150 | def onPageChanged(self, evt): |
|---|
| | 151 | print "Page number changed from %s to %s" % (evt.oldPageNum, evt.newPageNum) |
|---|
| | 152 | |
|---|
| | 153 | |
|---|
| | 154 | class _dPageList_test(dPageList): |
|---|
| | 155 | def initProperties(self): |
|---|
| | 156 | self.Width = 400 |
|---|
| | 157 | self.Height = 175 |
|---|
| | 158 | self.TabPosition = random.choice(("Top", "Bottom", "Left", "Right")) |
|---|
| | 159 | |
|---|
| | 160 | def afterInit(self): |
|---|
| | 161 | self.appendPage(caption="Introduction") |
|---|
| | 162 | self.appendPage(caption="Chapter I") |
|---|
| | 163 | self.Pages[0].BackColor = "darkred" |
|---|
| | 164 | self.Pages[1].BackColor = "darkblue" |
|---|
| | 165 | |
|---|
| | 166 | def onPageChanged(self, evt): |
|---|
| | 167 | print "Page number changed from %s to %s" % (evt.oldPageNum, evt.newPageNum) |
|---|
| | 168 | |
|---|
| | 169 | |
|---|
| | 170 | class _dPageSelect_test(dPageSelect): |
|---|
| | 171 | def initProperties(self): |
|---|
| | 172 | self.Width = 400 |
|---|
| | 173 | self.Height = 175 |
|---|
| | 174 | self.TabPosition = random.choice(("Top", "Bottom", "Left", "Right")) |
|---|
| | 175 | |
|---|
| | 176 | def afterInit(self): |
|---|
| | 177 | self.appendPage(caption="Introduction") |
|---|
| | 178 | self.appendPage(caption="Chapter I") |
|---|
| | 179 | self.Pages[0].BackColor = "darkred" |
|---|
| | 180 | self.Pages[1].BackColor = "darkblue" |
|---|
| | 181 | |
|---|
| | 182 | def onPageChanged(self, evt): |
|---|
| | 183 | print "Page number changed from %s to %s" % (evt.oldPageNum, evt.newPageNum) |
|---|
| | 184 | |
|---|
| | 185 | |
|---|