summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Core.py3
-rw-r--r--icons/setup.pngbin0 -> 2518 bytes
-rwxr-xr-xpyMainGui.py10
3 files changed, 7 insertions, 6 deletions
diff --git a/Core.py b/Core.py
index 4e488cba1..d76c4fba7 100644
--- a/Core.py
+++ b/Core.py
@@ -159,7 +159,7 @@ class Core(object):
mkdir(check_name)
else:
open(check_name, "w")
- print self.logger.debug(legend, _("created"))
+ self.logger.debug(legend, _("created"))
except:
self.logger.debug(_("could %s not create ") % legend)
exit()
@@ -223,7 +223,6 @@ class Core(object):
return list
-
def _test_print_status(self):
if self.thread_list.py_downloading:
diff --git a/icons/setup.png b/icons/setup.png
new file mode 100644
index 000000000..1badf1d67
--- /dev/null
+++ b/icons/setup.png
Binary files differ
diff --git a/pyMainGui.py b/pyMainGui.py
index 2200788bc..98eaac6ea 100755
--- a/pyMainGui.py
+++ b/pyMainGui.py
@@ -22,6 +22,7 @@ import wx
import wx.lib.sized_controls as sized_control
from os import sep
from os.path import abspath, dirname
+from module.remote.ClientSocket import ClientSocket
class Download_Dialog(sized_control.SizedDialog):
def __init__(self, parent, id):
@@ -67,6 +68,10 @@ class pyload_main_gui(wx.Frame):
wx.Frame.__init__(self,parent,id,title, size=(910,500))
app_path = dirname(abspath(__file__)) + sep
+ # socket
+ self.socket = ClientSocket(self)
+ self.socket.connect(('localhost', 7272))
+ self.socket.push("nonsense\n")
# Menubar
menubar = wx.MenuBar()
@@ -85,15 +90,12 @@ class pyload_main_gui(wx.Frame):
stop = toolbar.AddLabelTool(6,'',wx.Bitmap(app_path + '/icons/stop.png'))
up = toolbar.AddLabelTool(7,'',wx.Bitmap(app_path + '/icons/up.png'))
down = toolbar.AddLabelTool(8,'',wx.Bitmap(app_path + '/icons/down.png'))
+ 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)
# Binds