diff --git a/qspectrumanalyzer/__main__.py b/qspectrumanalyzer/__main__.py index 638951f..d651b37 100644 --- a/qspectrumanalyzer/__main__.py +++ b/qspectrumanalyzer/__main__.py @@ -2,7 +2,7 @@ import sys, os, signal, time, argparse -from Qt import QtCore, QtGui, QtWidgets, __binding__ +from Qt import QtCore, QtGui, QtWidgets from qspectrumanalyzer import backends from qspectrumanalyzer.version import __version__ @@ -621,7 +621,7 @@ def main(): global debug # Parse command line arguments - parser= argparse.ArgumentParser( + parser = argparse.ArgumentParser( prog="qspectrumanalyzer", description="Spectrum analyzer for multiple SDR platforms", ) diff --git a/qspectrumanalyzer/windows.py b/qspectrumanalyzer/windows.py index 3ce9637..adf6d12 100644 --- a/qspectrumanalyzer/windows.py +++ b/qspectrumanalyzer/windows.py @@ -24,6 +24,7 @@ IsWindowVisible = windll.user32.IsWindowVisible # interpreter procss, 0 if there is no window console_window_handle = GetConsoleWindow() + def set_attached_console_visible(state): """Show/hide system console window attached to current process. Return it's previous state. @@ -32,10 +33,12 @@ def set_attached_console_visible(state): flag = {True: SW_SHOW, False: SW_HIDE} return bool(ShowWindow(console_window_handle, flag[state])) + def is_attached_console_visible(): """Return True if attached console window is visible""" return IsWindowVisible(console_window_handle) + def set_windows_appusermodelid(): """Make sure correct icon is used on Windows 7 taskbar""" try: diff --git a/setup.py b/setup.py index 2cac7d7..d0dd34b 100755 --- a/setup.py +++ b/setup.py @@ -1,7 +1,5 @@ #!/usr/bin/env python -import sys - import setuptools from setuptools import setup