Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: pyLoad GUI #2661

Open
wants to merge 302 commits into
base: stable
Choose a base branch
from
Open

Fix: pyLoad GUI #2661

wants to merge 302 commits into from

Conversation

snilt
Copy link

@snilt snilt commented Dec 23, 2016

@GammaC0de
Copy link
Member

GUI version is not supported anymore.
Next pyLoad version will have WebUI only.

@AxeMax
Copy link

AxeMax commented Dec 27, 2016

Is it just "not supported", or will the API/Interface be scrapped so that the GUI has no chance of working?
Maybe the interface could be kept and the GUI code moved to an own repo?
This way the GUI wouldn't be part of the official pyLoad-package and the pyLoadCore team wouldn't have to work on it. But the people who are willing to use the GUI and make it work can still have it.
I really liked the responsiveness of the GUI and CLI-GUI.

@GammaC0de
Copy link
Member

@Burnout5151 Good Ideas, @vuolter has to answer this.

API will not be removed, the WebUI and some other addons uses it.

@vuolter
Copy link
Contributor

vuolter commented Jan 10, 2017

Since the new pyLoad version has a new API set, this GUI should be adapted before start working with it.
I encourage the idea of a separate modules (like GUI. CLI, plugins, etc.) to leave this repo only for the core.

@vuolter vuolter added enhancement New feature or bugfix unmergeable labels Jan 10, 2017
@CLAassistant
Copy link

CLAassistant commented Mar 7, 2017

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@vuolter
Copy link
Contributor

vuolter commented Jul 25, 2020

Codacy Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 15
- Added 8
           

Complexity increasing per file
==============================
- module/gui/Collector.py  13
- module/gui/LoggingLevels.py  2
- module/gui/Tools.py  19
- module/gui/TrayIcon.py  7
- module/gui/AboutBox.py  7
- module/gui/InfoCorePermissions.py  14
- module/gui/PackageEdit.py  1
- module/gui/AdvancedSelect.py  3
- module/gui/CaptchaDialog.py  10
- module/gui/Options.py  7
- module/gui/_pyLoadGui.py  59
- module/gui/Overview.py  1
- module/gui/SettingsWidget.py  7
- module/gui/ConnectionManager.py  1
- module/gui/Notification.py  7
- module/gui/LinkDock.py  2
         

Complexity decreasing per file
==============================
+ module/gui/PackageDock.py  -3
+ module/gui/CoreConfigParser.py  -12
         

Clones added
============
- module/gui/Queue.py  7
- module/gui/Collector.py  25
- module/gui/Accounts.py  1
- module/gui/Tools.py  3
- module/gui/MainWindow.py  2
- module/lib/restart_on_windows.py  1
- module/gui/PackageDock.py  8
- module/gui/Options.py  153
- module/remote/thriftbackend/Socket.py  1
- pyLoadCore.py  2
- module/gui/Connector.py  1
- module/gui/SettingsWidget.py  2
- pyLoadGui.py  10
- module/remote/thriftbackend/ThriftClient.py  2
- module/gui/ConnectionManager.py  9
- module/gui/LinkDock.py  8
         

Clones removed
==============
+ module/gui/CoreConfigParser.py  -2
         

See the complete overview on Codacy


def importVersion4():
try:
from PyQt4.Qt import PYQT_VERSION_STR
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy found an issue: Unused variable 'PYQT_VERSION_STR'

along with this program; if not, see <http://www.gnu.org/licenses/>.
"""

import subprocess
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if DESKTOP_NOTIFICATIONS is None:
# auto detect, prefer notify2
try:
import notify2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy found an issue: Unused import notify2

args.extend(sys.argv[2:])

try:
subprocess.Popen(args, close_fds=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perc_sum += 100
perc_sum += int(child.data["downloading"]["percent"])
except:
except Exception:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy found an issue: Try, Except, Pass detected.

DESKTOP_NOTIFICATIONS = "notify2"
except ImportError:
try:
import pynotify
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy found an issue: Unused import pynotify

args.append(str(os.getpid()))
args.extend(sys.argv)
try:
subprocess.Popen(args, close_fds=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


def importVersion5():
try:
from PyQt5.Qt import PYQT_VERSION_STR
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy found an issue: Unused variable 'PYQT_VERSION_STR'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or bugfix
Development

Successfully merging this pull request may close these issues.

None yet

5 participants