mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-09 18:05:05 -04:00
Move ShareMode and ReceiveMode into Mode module
This commit is contained in:
parent
62718d1c8b
commit
b0b5b6c79e
10 changed files with 10 additions and 9 deletions
|
@ -24,7 +24,7 @@ from onionshare.web import Web
|
||||||
|
|
||||||
from .uploads import Uploads
|
from .uploads import Uploads
|
||||||
from .info import ReceiveModeInfo
|
from .info import ReceiveModeInfo
|
||||||
from ..mode import Mode
|
from .. import Mode
|
||||||
|
|
||||||
class ReceiveMode(Mode):
|
class ReceiveMode(Mode):
|
||||||
"""
|
"""
|
|
@ -24,7 +24,7 @@ from datetime import datetime
|
||||||
from PyQt5 import QtCore, QtWidgets, QtGui
|
from PyQt5 import QtCore, QtWidgets, QtGui
|
||||||
|
|
||||||
from onionshare import strings
|
from onionshare import strings
|
||||||
from ..widgets import Alert
|
from ...widgets import Alert
|
||||||
|
|
||||||
|
|
||||||
class File(QtWidgets.QWidget):
|
class File(QtWidgets.QWidget):
|
|
@ -29,8 +29,8 @@ from .file_selection import FileSelection
|
||||||
from .downloads import Downloads
|
from .downloads import Downloads
|
||||||
from .threads import CompressThread
|
from .threads import CompressThread
|
||||||
from .info import ShareModeInfo
|
from .info import ShareModeInfo
|
||||||
from ..mode import Mode
|
from .. import Mode
|
||||||
from ..widgets import Alert
|
from ...widgets import Alert
|
||||||
|
|
||||||
class ShareMode(Mode):
|
class ShareMode(Mode):
|
||||||
"""
|
"""
|
|
@ -22,7 +22,7 @@ from PyQt5 import QtCore, QtWidgets, QtGui
|
||||||
|
|
||||||
from onionshare import strings
|
from onionshare import strings
|
||||||
|
|
||||||
from ..widgets import Alert, AddFileDialog
|
from ...widgets import Alert, AddFileDialog
|
||||||
|
|
||||||
class DropHereLabel(QtWidgets.QLabel):
|
class DropHereLabel(QtWidgets.QLabel):
|
||||||
"""
|
"""
|
|
@ -23,8 +23,8 @@ from PyQt5 import QtCore, QtWidgets, QtGui
|
||||||
from onionshare import strings
|
from onionshare import strings
|
||||||
from onionshare.web import Web
|
from onionshare.web import Web
|
||||||
|
|
||||||
from .share_mode import ShareMode
|
from .mode.share_mode import ShareMode
|
||||||
from .receive_mode import ReceiveMode
|
from .mode.receive_mode import ReceiveMode
|
||||||
|
|
||||||
from .tor_connection_dialog import TorConnectionDialog
|
from .tor_connection_dialog import TorConnectionDialog
|
||||||
from .settings_dialog import SettingsDialog
|
from .settings_dialog import SettingsDialog
|
||||||
|
|
5
setup.py
5
setup.py
|
@ -69,8 +69,9 @@ setup(
|
||||||
'onionshare',
|
'onionshare',
|
||||||
'onionshare.web',
|
'onionshare.web',
|
||||||
'onionshare_gui',
|
'onionshare_gui',
|
||||||
'onionshare_gui.share_mode',
|
'onionshare_gui.mode',
|
||||||
'onionshare_gui.receive_mode'
|
'onionshare_gui.mode.share_mode',
|
||||||
|
'onionshare_gui.mode.receive_mode'
|
||||||
],
|
],
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
scripts=['install/scripts/onionshare', 'install/scripts/onionshare-gui'],
|
scripts=['install/scripts/onionshare', 'install/scripts/onionshare-gui'],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue