Browse Source

Rename dlthread and updthread modules

doc-issue-template
MrS0m30n3 9 years ago
parent
commit
f224e32636
3 changed files with 9 additions and 9 deletions
  1. 2
      youtube_dl_gui/downloadmanager.py
  2. 16
      youtube_dl_gui/mainframe.py
  3. 0
      youtube_dl_gui/updatemanager.py

youtube_dl_gui/dlthread.py → 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

16
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

youtube_dl_gui/updthread.py → youtube_dl_gui/updatemanager.py

Loading…
Cancel
Save