From f224e32636d4fb2ae80fcaf87c7e907afa88296a Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Sat, 10 Jan 2015 17:46:22 +0200 Subject: [PATCH] Rename dlthread and updthread modules --- .../{dlthread.py => downloadmanager.py} | 2 +- youtube_dl_gui/mainframe.py | 16 ++++++++-------- .../{updthread.py => updatemanager.py} | 0 3 files changed, 9 insertions(+), 9 deletions(-) rename youtube_dl_gui/{dlthread.py => downloadmanager.py} (99%) rename youtube_dl_gui/{updthread.py => updatemanager.py} (100%) diff --git a/youtube_dl_gui/dlthread.py b/youtube_dl_gui/downloadmanager.py similarity index 99% rename from youtube_dl_gui/dlthread.py rename to youtube_dl_gui/downloadmanager.py index ccc2a90..5b685fa 100644 --- a/youtube_dl_gui/dlthread.py +++ b/youtube_dl_gui/downloadmanager.py @@ -20,7 +20,7 @@ from wx.lib.pubsub import setuparg1 from wx.lib.pubsub import pub as Publisher from .parsers import OptionsParser -from .updthread import UpdateThread +from .updatemanager import UpdateThread from .downloaders import YoutubeDLDownloader from .utils import YOUTUBEDL_BIN diff --git a/youtube_dl_gui/mainframe.py b/youtube_dl_gui/mainframe.py index 0aee6cb..12e3db1 100644 --- a/youtube_dl_gui/mainframe.py +++ b/youtube_dl_gui/mainframe.py @@ -11,8 +11,8 @@ from wx.lib.pubsub import pub as Publisher from wx.lib.mixins.listctrl import ListCtrlAutoWidthMixin from .optionsframe import OptionsFrame -from .updthread import UpdateThread -from .dlthread import DownloadManager +from .updatemanager import UpdateThread +from .downloadmanager import DownloadManager from .utils import ( YOUTUBEDL_BIN, @@ -260,12 +260,12 @@ class MainFrame(wx.Frame): open_dir(self.opt_manager.options['save_path']) def _status_list_handler(self, msg): - """dlthread.Worker thread handler. + """downloadmanager.Worker thread handler. Handles messages from the Worker thread. Args: - See dlthread.Worker _talk_to_gui() method. + See downloadmanager.Worker _talk_to_gui() method. """ data = msg.data @@ -277,12 +277,12 @@ class MainFrame(wx.Frame): self._status_bar_write(msg) def _download_manager_handler(self, msg): - """dlthread.DownloadManager thread handler. + """downloadmanager.DownloadManager thread handler. Handles messages from the DownloadManager thread. Args: - See dlthread.DownloadManager _talk_to_gui() method. + See downloadmanager.DownloadManager _talk_to_gui() method. """ data = msg.data @@ -300,12 +300,12 @@ class MainFrame(wx.Frame): self._status_bar_write(self.CLOSING_MSG) def _update_handler(self, msg): - """dlthread.UpdateThread thread handler. + """updatemanager.UpdateThread thread handler. Handles messages from the UpdateThread thread. Args: - See updthread.UpdateThread _talk_to_gui() method. + See updatemanager.UpdateThread _talk_to_gui() method. """ data = msg.data diff --git a/youtube_dl_gui/updthread.py b/youtube_dl_gui/updatemanager.py similarity index 100% rename from youtube_dl_gui/updthread.py rename to youtube_dl_gui/updatemanager.py