summaryrefslogtreecommitdiffstats
path: root/pyMainGui.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-05-31 22:57:01 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-05-31 22:57:01 +0200
commitdae46dae685d910142cb427026ca92287051f839 (patch)
treedbe57e01e7fd075efb004c1b0ce6194891eaed3e /pyMainGui.py
parentadded XupIn.py (diff)
parentsocket example (diff)
downloadpyload-dae46dae685d910142cb427026ca92287051f839.tar.xz
merged
Diffstat (limited to 'pyMainGui.py')
-rwxr-xr-xpyMainGui.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/pyMainGui.py b/pyMainGui.py
index c84f1ed01..86bfbe274 100755
--- a/pyMainGui.py
+++ b/pyMainGui.py
@@ -71,9 +71,9 @@ class Pyload_Main_Gui(wx.Frame):
app_path = dirname(abspath(__file__)) + sep
- # socket
+ # socket
self.thread = SocketThread("localhost", 7272, "pwhere", self)
- self.thread.push_exec("get_downloads")
+
# Menubar
menubar = wx.MenuBar()
@@ -106,6 +106,10 @@ class Pyload_Main_Gui(wx.Frame):
self.Centre()
self.Show(True)
+
+ #test
+
+ self.thread.push_exec("get_downloads")
def exit_button_clicked(self, event):
self.Close()
@@ -114,6 +118,10 @@ class Pyload_Main_Gui(wx.Frame):
adddownload = _Download_Dialog(None, -1)
result = adddownload.ShowModal()
adddownload.Destroy()
+
+ def show_links(self, links):
+ for link in links:
+ wx.MessageDialog(None, str(link), 'info', style=wx.OK).ShowModal()
app = wx.App()
Pyload_Main_Gui(None,-1)