From 00c2fbaeb53c1e8b7aca30f28f5ca52da3562b83 Mon Sep 17 00:00:00 2001 From: idziubenko Date: Fri, 6 Aug 2021 17:15:01 +0300 Subject: [PATCH] code clean-up --- pym/consolegui/application/DisplayMethod.py | 1 - pym/consolegui/application/LeftMenu.py | 1 - pym/consolegui/application/MainClass.py | 1 - pym/consolegui/application/MainFrameResult.py | 2 -- pym/consolegui/application/SelectTable.py | 1 - pym/consolegui/application/TrayIcon.py | 1 - pym/consolegui/application/View_Process.py | 1 - pym/consolegui/application/create_cert.py | 1 - pym/consolegui/application/helpwidget.py | 1 - pym/consolegui/application/mainframe.py | 4 ++-- pym/consolegui/application/mainmenu.py | 1 - pym/consolegui/application/more.py | 2 -- pym/consolegui/application/pid_information.py | 1 - pym/consolegui/application/session_function.py | 1 - pym/consolegui/application/tools.py | 1 - pym/consolegui/variables/__init__.py | 17 ----------------- 16 files changed, 2 insertions(+), 35 deletions(-) diff --git a/pym/consolegui/application/DisplayMethod.py b/pym/consolegui/application/DisplayMethod.py index 8e81a7c..8d2b40c 100644 --- a/pym/consolegui/application/DisplayMethod.py +++ b/pym/consolegui/application/DisplayMethod.py @@ -14,7 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import from .. import qt from .more import ButtonMenu, FlowLayout, get_sid, ClientServiceThread, \ diff --git a/pym/consolegui/application/LeftMenu.py b/pym/consolegui/application/LeftMenu.py index ec4d6a4..58e9963 100644 --- a/pym/consolegui/application/LeftMenu.py +++ b/pym/consolegui/application/LeftMenu.py @@ -14,7 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import from .. import qt from .more import ButtonMenu, icon_visible, LabelWordWrap, get_sid, show_msg, \ ClientServiceThread, show_question, get_view_params, _print, \ diff --git a/pym/consolegui/application/MainClass.py b/pym/consolegui/application/MainClass.py index 363a6cf..88aec1d 100644 --- a/pym/consolegui/application/MainClass.py +++ b/pym/consolegui/application/MainClass.py @@ -14,7 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import from .Box import MainWgt from .. import qt #from mainmenu import MainMenu diff --git a/pym/consolegui/application/MainFrameResult.py b/pym/consolegui/application/MainFrameResult.py index 11e680a..dd2d120 100644 --- a/pym/consolegui/application/MainFrameResult.py +++ b/pym/consolegui/application/MainFrameResult.py @@ -14,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import print_function -from __future__ import absolute_import from .. import qt DEBUG_LEVEL = 99999 diff --git a/pym/consolegui/application/SelectTable.py b/pym/consolegui/application/SelectTable.py index 2a6c00e..02574e4 100644 --- a/pym/consolegui/application/SelectTable.py +++ b/pym/consolegui/application/SelectTable.py @@ -14,7 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import from .. import qt from .more import get_system_rgb, ParameterWindow diff --git a/pym/consolegui/application/TrayIcon.py b/pym/consolegui/application/TrayIcon.py index e4a5e57..7c3a02b 100644 --- a/pym/consolegui/application/TrayIcon.py +++ b/pym/consolegui/application/TrayIcon.py @@ -14,7 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import from .. import qt import time import urllib.request as urllib2 diff --git a/pym/consolegui/application/View_Process.py b/pym/consolegui/application/View_Process.py index 5984830..b4c069f 100644 --- a/pym/consolegui/application/View_Process.py +++ b/pym/consolegui/application/View_Process.py @@ -14,7 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# from __future__ import absolute_import from .. import qt from .pid_information import client_list_pid, client_pid_info diff --git a/pym/consolegui/application/create_cert.py b/pym/consolegui/application/create_cert.py index 2e84dce..b2e7c03 100644 --- a/pym/consolegui/application/create_cert.py +++ b/pym/consolegui/application/create_cert.py @@ -14,7 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import import socket from .. import qt diff --git a/pym/consolegui/application/helpwidget.py b/pym/consolegui/application/helpwidget.py index e8f0e3c..3272e42 100644 --- a/pym/consolegui/application/helpwidget.py +++ b/pym/consolegui/application/helpwidget.py @@ -14,7 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import from .. import qt from .more import LabelWordWrap, show_msg, get_icon import datetime diff --git a/pym/consolegui/application/mainframe.py b/pym/consolegui/application/mainframe.py index b40d346..be51404 100644 --- a/pym/consolegui/application/mainframe.py +++ b/pym/consolegui/application/mainframe.py @@ -14,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# from __future__ import print_function -# from __future__ import absolute_import from .. import qt # from calculate.core.client.function import create_obj, listToArrayArray, \ # listToArray @@ -2345,6 +2343,8 @@ class MainFrame(qt.QWidget): return wrapper def add_expert(self, field_name): + print("DEBUG add expert") + print(self.expert_list) if field_name not in self.expert_list: self.expert_list.append(field_name) diff --git a/pym/consolegui/application/mainmenu.py b/pym/consolegui/application/mainmenu.py index 6b8f9ee..4a81053 100644 --- a/pym/consolegui/application/mainmenu.py +++ b/pym/consolegui/application/mainmenu.py @@ -15,7 +15,6 @@ # limitations under the License. -from __future__ import absolute_import from .. import qt from .more import TopMenu, HelpMenu#, FlowLayout diff --git a/pym/consolegui/application/more.py b/pym/consolegui/application/more.py index cdb37e4..d5974e4 100644 --- a/pym/consolegui/application/more.py +++ b/pym/consolegui/application/more.py @@ -14,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import print_function -from __future__ import absolute_import import os import time import urllib.request as urllib2 diff --git a/pym/consolegui/application/pid_information.py b/pym/consolegui/application/pid_information.py index 1d4baac..5fa83d6 100644 --- a/pym/consolegui/application/pid_information.py +++ b/pym/consolegui/application/pid_information.py @@ -14,7 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import from .more import get_sid, get_icon from .. import qt from .ReturnMessage import ReturnedMessage diff --git a/pym/consolegui/application/session_function.py b/pym/consolegui/application/session_function.py index a53012e..f91054a 100644 --- a/pym/consolegui/application/session_function.py +++ b/pym/consolegui/application/session_function.py @@ -14,7 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import from .. import qt import urllib.request as urllib2 from calculate.lib.utils.tools import Locker diff --git a/pym/consolegui/application/tools.py b/pym/consolegui/application/tools.py index 5dfb0de..fde5558 100644 --- a/pym/consolegui/application/tools.py +++ b/pym/consolegui/application/tools.py @@ -14,7 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import import os from .. import qt diff --git a/pym/consolegui/variables/__init__.py b/pym/consolegui/variables/__init__.py index 87a7460..74a20cb 100644 --- a/pym/consolegui/variables/__init__.py +++ b/pym/consolegui/variables/__init__.py @@ -14,23 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import -#-*- coding: utf-8 -*- - -# Copyright 2012-2016 Mir Calculate. http://www.calculate-linux.org -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from . import console section = "consolegui"