Move ShareMode and ReceiveMode into Mode module

This commit is contained in:
Micah Lee 2018-10-07 14:54:51 -07:00
parent 7c61483ae9
commit 801d8b965c
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73
10 changed files with 10 additions and 9 deletions

View File

@ -24,7 +24,7 @@ from onionshare.web import Web
from .uploads import Uploads
from .info import ReceiveModeInfo
from ..mode import Mode
from .. import Mode
class ReceiveMode(Mode):
"""

View File

@ -24,7 +24,7 @@ from datetime import datetime
from PyQt5 import QtCore, QtWidgets, QtGui
from onionshare import strings
from ..widgets import Alert
from ...widgets import Alert
class File(QtWidgets.QWidget):

View File

@ -29,8 +29,8 @@ from .file_selection import FileSelection
from .downloads import Downloads
from .threads import CompressThread
from .info import ShareModeInfo
from ..mode import Mode
from ..widgets import Alert
from .. import Mode
from ...widgets import Alert
class ShareMode(Mode):
"""

View File

@ -22,7 +22,7 @@ from PyQt5 import QtCore, QtWidgets, QtGui
from onionshare import strings
from ..widgets import Alert, AddFileDialog
from ...widgets import Alert, AddFileDialog
class DropHereLabel(QtWidgets.QLabel):
"""

View File

@ -23,8 +23,8 @@ from PyQt5 import QtCore, QtWidgets, QtGui
from onionshare import strings
from onionshare.web import Web
from .share_mode import ShareMode
from .receive_mode import ReceiveMode
from .mode.share_mode import ShareMode
from .mode.receive_mode import ReceiveMode
from .tor_connection_dialog import TorConnectionDialog
from .settings_dialog import SettingsDialog

View File

@ -69,8 +69,9 @@ setup(
'onionshare',
'onionshare.web',
'onionshare_gui',
'onionshare_gui.share_mode',
'onionshare_gui.receive_mode'
'onionshare_gui.mode',
'onionshare_gui.mode.share_mode',
'onionshare_gui.mode.receive_mode'
],
include_package_data=True,
scripts=['install/scripts/onionshare', 'install/scripts/onionshare-gui'],