-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathguildlist.py
More file actions
50 lines (39 loc) · 1.32 KB
/
Copy pathguildlist.py
File metadata and controls
50 lines (39 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env python
#coding: utf-8
"This is main program,coding for water@moon dance guild \
Function:generate a simple list of guild members \
License:None \
Author:Lambert<lambertdev@gmail.com>"
import os, sys
import threading
import wx
import config
import wmframe
home = os.path.dirname(os.path.abspath(sys.argv[0]))
class GuildListSplash(wx.SplashScreen):
def __init__(self,parent):
global home
self.parent = parent
bmp = wx.Image(os.path.join(home, 'images', 'splash.png'),wx.BITMAP_TYPE_PNG).ConvertToBitmap()
wx.SplashScreen.__init__(self, bmp, wx.SPLASH_CENTER_ON_SCREEN|wx.SPLASH_TIMEOUT, 2000, None, -1)
self.fc = wx.FutureCall(100, self.MainWindow)
def MainWindow(self):
self.frame = wmframe.WMFrame(None,-1,config.PROGRAMNAME+" "+config.VERSION)
self.frame.CenterOnScreen()
self.parent.SetTopWindow(self.frame)
self.frame.Show(True)
class GuildList(wx.App):
def __init__(self):
wx.App.__init__(self, 0)
def OnInit(self):
splash = GuildListSplash(self)
splash.Show(True)
self.Bind(wx.EVT_ACTIVATE_APP, self.OnGramStart)
return True
def OnGramStart(self,event):
pass
def main():
app = GuildList()
app.MainLoop()
if __name__ == '__main__':
main()