1 |
xabbu |
1.1 |
#!/usr/bin/env python |
2 |
|
|
#Boa:App:BoaApp |
3 |
|
|
|
4 |
|
|
from wxPython.wx import * |
5 |
|
|
|
6 |
joko |
1.2 |
import fraggleEngine |
7 |
xabbu |
1.1 |
import fraggleViewport |
8 |
|
|
|
9 |
|
|
modules ={'fraggleDialogPrefs': [0, '', 'fraggleDialogPrefs.py'], |
10 |
|
|
'fraggleViewport': [1, '', 'fraggleViewport.py']} |
11 |
|
|
|
12 |
|
|
class BoaApp(wxApp): |
13 |
|
|
def OnInit(self): |
14 |
|
|
wxInitAllImageHandlers() |
15 |
|
|
self.main = fraggleViewport.create(None) |
16 |
|
|
# needed when running from Boa under Windows 9X |
17 |
|
|
self.SetTopWindow(self.main) |
18 |
|
|
self.main.Show();self.main.Hide();self.main.Show() |
19 |
|
|
return True |
20 |
|
|
|
21 |
|
|
def main(): |
22 |
joko |
1.2 |
#global url |
23 |
|
|
#url = urlOpener() # MUST start before the gui |
24 |
|
|
urlOpener = fraggleEngine.urlOpener() |
25 |
xabbu |
1.1 |
application = BoaApp(0) |
26 |
|
|
application.MainLoop() |
27 |
|
|
|
28 |
|
|
if __name__ == '__main__': |
29 |
|
|
main() |