Skip to content

Commit

Permalink
This should work better 🤞
Browse files Browse the repository at this point in the history
Issue #319
  • Loading branch information
damies13 committed Nov 22, 2024
1 parent d2ce867 commit 63e0564
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
16 changes: 8 additions & 8 deletions rfswarm_manager/rfswarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2388,8 +2388,7 @@ def __init__(self, master=None):
parser.add_argument('-p', '--port', help='Port number to bind the server to')
parser.add_argument('-c', '--create', help='ICON : Create application icon / shortcut')
# to be deprecated by version 2.1
parser.add_argument('--tkinter', help='Run v1.x tkinter GUI')
parser.add_argument('--html', help='Run v2.x html GUI')
parser.add_argument('-u', '--ui',, help='[ V1 | V2 ] Specify which version of the GUI you want to use (default: V1)')

base.args = parser.parse_args()

Expand Down Expand Up @@ -2592,13 +2591,14 @@ def __init__(self, master=None):
if not base.args.run:
base.args.run = True
else:
if base.args.tkinter:
base.gui = RFSwarmGUItk()
if base.args.ui:
if base.args.ui.upper() in ["V1"]:
base.gui = RFSwarmGUItk()

if base.args.html:
base.gui = RFSwarmGUIhtml()
if base.args.ui.upper() in ["V2"]:
base.gui = RFSwarmGUIhtml()

if not base.args.tkinter and not base.args.html:
else:
# run default
base.gui = RFSwarmGUItk()
# base.gui = RFSwarmGUIhtml()
Expand Down Expand Up @@ -8530,7 +8530,7 @@ def mnu_file_Close(self, _event=None):

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# End class RFSwarmGUI
# End class RFSwarmGUItk
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

Expand Down
14 changes: 7 additions & 7 deletions rfswarm_reporter/rfswarm_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3501,8 +3501,7 @@ def __init__(self, master=None):
# parser.add_argument('--ods', help='Generate an OpenOffice/LibreOffice Calc report', action='store_true')
parser.add_argument('-c', '--create', help='ICON : Create application icon / shortcut')
# to be deprecated by version 2.1
parser.add_argument('--tkinter', help='Run v1.x tkinter GUI')
parser.add_argument('--html', help='Run v2.x html GUI')
parser.add_argument('-u', '--ui',, help='[ V1 | V2 ] Specify which version of the GUI you want to use (default: V1)')

base.args = parser.parse_args()

Expand Down Expand Up @@ -3660,13 +3659,14 @@ def __init__(self, master=None):
self.t_export["xlsx"].start()

if base.displaygui:
if base.args.tkinter:
base.gui = ReporterGUItk()
if base.args.ui:
if base.args.ui.upper() in ["V1"]:
base.gui = ReporterGUItk()

if base.args.html:
base.gui = ReporterGUIhtml()
if base.args.ui.upper() in ["V2"]:
base.gui = ReporterGUIhtml()

if not base.args.tkinter and not base.args.html:
else:
# run default
base.gui = ReporterGUItk()
# base.gui = ReporterGUIhtml()
Expand Down

0 comments on commit 63e0564

Please sign in to comment.