Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import wx
- from classes.class_program import logic
- logic = logic()
- connected = []
- def xbox_alert_logic(gamertag):
- """docstring for xbox_alert_logict"""
- try:
- checker = logic.online_check(gamertag)
- if checker[-1] == True:
- connected.append(True)
- else:
- connected.append(False)
- logic.online_alert(connected)
- return checker
- except:
- pass
- def app_runner(gamer_tags):
- """docstring for app_runner"""
- alerter = xbox_alert_logic(gamer_tags)
- try:
- output = alerter[0] + ' ' + alerter[1]
- return output
- except:
- pass
- class Frame(wx.Frame):
- def __init__(self, title):
- wx.Frame.__init__(self, None, title=title, size=(350,200))
- panel = wx.Panel(self, -1)
- self.st = wx.StaticText(panel, -1, 'starting text', (30,0))
- self.timer = wx.Timer(self)
- self.Bind(wx.EVT_TIMER, self.OnClose, self.timer)
- self.timer.Start(1000)
- def OnClose(self, event):
- apper = app_runner('DOA Desolate')
- self.st.SetLabel(apper)
- App = wx.App()
- frame = Frame('alert')
- frame.Show()
- App.MainLoop()
Advertisement
Add Comment
Please, Sign In to add comment