| 103 | return True |
| 104 | |
| 105 | def start(self, para=None, callback=None): |
| 106 | #print self.title, para |
| 107 | if not self.check(self.ips):return |
| 108 | if not self.load(self.ips):return |
| 109 | |
| 110 | |
| 111 | if para!=None: |
| 112 | self.ok(self.ips, para, callback) |
| 113 | elif self.view==None: |
| 114 | if not self.__class__.show is Simple.show: |
| 115 | if self.show(): |
| 116 | self.ok(self.ips, para, callback) |
| 117 | else: self.ok(self.ips, para, callback) |
| 118 | elif self.modal: |
| 119 | if self.show(): |
| 120 | self.ok(self.ips, para, callback) |
| 121 | else: |
| 122 | self.cancel(self.ips) |
| 123 | self.ips.update() |
| 124 | if not self.dialog is None: self.dialog.Destroy() |
| 125 | else: self.show() |