diff options
author | cp1 <christopherpool1@googlemail.com> | 2009-05-31 18:41:48 +0200 |
---|---|---|
committer | cp1 <christopherpool1@googlemail.com> | 2009-05-31 18:41:48 +0200 |
commit | a78d2e61ec431a0a7b57286ef9db3f94de46230b (patch) | |
tree | c6aaf064b856dd1ac60729805bac3839d79c94b0 /pyMainGui.py | |
parent | download plugin for xup.in added, download works with post data (diff) | |
download | pyload-a78d2e61ec431a0a7b57286ef9db3f94de46230b.tar.xz |
Backed out changeset 9455bf89f55f made by spoob.
Diffstat (limited to 'pyMainGui.py')
-rwxr-xr-x | pyMainGui.py | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/pyMainGui.py b/pyMainGui.py index ed7dfb2c2..10903433c 100755 --- a/pyMainGui.py +++ b/pyMainGui.py @@ -25,6 +25,10 @@ from os.path import dirname import wx import wx.lib.sized_controls as sized_control from module.remote.ClientSocket import ClientSocket +from Core import Core +#from module.Py_Load_File import PyLoadFile +from module.remote.SocketServer import ServerThread +#from module.thread_list import Thread_List class _Download_Dialog(sized_control.SizedDialog): def __init__(self, parent, id): @@ -70,7 +74,14 @@ class Pyload_Main_Gui(wx.Frame): wx.Frame.__init__(self, parent, id, title, size=(910, 500)) app_path = dirname(abspath(__file__)) + sep - # socket + # Core + testLoader = Core() + if testLoader.config['remote_activated']: + print _("Server Mode") + server = ServerThread(testLoader) + server.start() + + # socket self.socket = ClientSocket(self) self.socket.connect(('localhost', 7272)) self.socket.sendall("nonsense\n") @@ -116,7 +127,8 @@ class Pyload_Main_Gui(wx.Frame): adddownload = _Download_Dialog(None, -1) result = adddownload.ShowModal() adddownload.Destroy() - -app = wx.App() -Pyload_Main_Gui(None,-1) -app.MainLoop() + +if __name__ == "__main__": + app = wx.App() + Pyload_Main_Gui(None,-1) + app.MainLoop() |