summaryrefslogtreecommitdiffstats
path: root/pyLoadGui.py
diff options
context:
space:
mode:
authorGravatar kingzero <devnull@localhost> 2009-06-20 22:30:39 +0200
committerGravatar kingzero <devnull@localhost> 2009-06-20 22:30:39 +0200
commit58e518383ecd8c0d24178b44286185e505e2f766 (patch)
tree6dbbc9adba9b276585bc0275eb17709021ac75a6 /pyLoadGui.py
parentcolorful cli (diff)
downloadpyload-58e518383ecd8c0d24178b44286185e505e2f766.tar.xz
added function to add new downloads to the core
Diffstat (limited to 'pyLoadGui.py')
-rwxr-xr-xpyLoadGui.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/pyLoadGui.py b/pyLoadGui.py
index 07480b5fb..dc622c535 100755
--- a/pyLoadGui.py
+++ b/pyLoadGui.py
@@ -152,10 +152,10 @@ class Pyload_Main_Gui(wx.Frame):
config = toolbar.AddLabelTool(9, '', wx.Bitmap(app_path + '/icons/setup.png'))
toolbar.Realize()
- splitter = wx.SplitterWindow(self)
- panel_up = _Upper_Panel(splitter)
- panel_down = _Lower_Panel(splitter)
- splitter.SplitHorizontally(panel_up, panel_down, 300)
+ #splitter = wx.SplitterWindow(self)
+ panel_up = _Upper_Panel(self)
+ #panel_down = _Lower_Panel(splitter)
+ #splitter.SplitHorizontally(panel_up, panel_down, 300)
# Binds
self.Bind(wx.EVT_MENU, self.exit_button_clicked, submenu_exit)
@@ -206,6 +206,8 @@ class Pyload_Main_Gui(wx.Frame):
add_download = _Download_Dialog(None, -1)
result = add_download.ShowModal()
add_download.Destroy()
+ downloads = add_download.links.GetValue().split()
+ self.thread.push_exec('add_links', [downloads])
def show_links(self, links):
for link in links:
@@ -225,6 +227,10 @@ class Pyload_Main_Gui(wx.Frame):
if evt.obj.command == "update":
#pass
self.show_links(evt.obj.data)
+
+ if evt.obj.command == "file_list":
+ #pass
+ self.show_links(evt.obj.data[1].url)
app = wx.App()
Pyload_Main_Gui(None, -1)