projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add method to create the sources dir into the project.
[bertos.git]
/
wizard
/
BWizard.py
diff --git
a/wizard/BWizard.py
b/wizard/BWizard.py
index 11a2dd263b8fc70d584e7f781fe4c4d88865e1bc..4b7ab45deed1bc1c3c85c09603eeb8863374c775 100644
(file)
--- a/
wizard/BWizard.py
+++ b/
wizard/BWizard.py
@@
-69,12
+69,13
@@
class BWizard(QWizard):
"""
Adds the pages in the wizard.
"""
"""
Adds the pages in the wizard.
"""
- self._page_list = page_list
- for i, page in enumerate(self._page_list):
+ self._page_dict = {}
+ for i, page in enumerate(page_list):
+ self._page_dict[page] = i
self.setPage(i, page())
def pageIndex(self, page_class):
self.setPage(i, page())
def pageIndex(self, page_class):
- return self._page_
list.index(page_class)
+ return self._page_
dict[page_class]
def connectSignals(self):
"""
def connectSignals(self):
"""