def setUp(self): """ Create the popup""" default_config_path = get_default_config_path() Variables().read(default_config_path) fin = open(default_config_path, 'r') self.defaults = json.load(fin)["bar_plot_settings"] fin.close() self.popup = BarPlotPopup() self.variable_keys = tuple(self.popup.variables.keys()) self.local_variable_keys = tuple(self.popup.local_variables.keys())
def setUp(self): """ Create the popup""" default_config_path = get_default_config_path() Variables().read(default_config_path) fin = open(default_config_path, 'r') self.defaults = json.load(fin)["res_evo_settings"] fin.close() self.popup = ResidueEvolutionPopup() self.variable_keys = tuple(self.popup.variables.keys()) self.local_variable_keys = tuple(self.popup.local_variables.keys())
def setUp(self): """ Create the popup""" default_config_path = get_default_config_path() Variables().read(default_config_path) fin = open(default_config_path, 'r') self.defaults = json.load(fin)["pre_files"] fin.close() self.popup = PRETheoreticalSelectionPopup() self.variable_keys = tuple(self.popup.variables.keys()) self.local_variable_keys = tuple(self.popup.local_variables.keys())
def setUp(self): """ Create the popup""" default_config_path = get_default_config_path() Variables().read(default_config_path) fin = open(default_config_path, 'r') self.defaults = json.load(fin)["csp_settings"]["csp_res_exceptions"] fin.close() self.popup = CSPExceptionsPopup() self.variable_keys = tuple(self.popup.variables.keys()) self.local_variable_keys = tuple(self.popup.local_variables.keys())
def setUp(self): ''' Create the popup''' default_config_path = get_default_config_path() Variables().read(default_config_path) fin = open(default_config_path, 'r') self.defaults = json.load(fin) fin.close() screen_resolution = app.desktop().screenGeometry() gui_settings, stylesheet = gui_utils.deliver_settings( screen_resolution) tabWidget = TabWidget(gui_settings) self.widget = Settings(tabWidget, gui_settings=gui_settings, footer=True) self.variable_keys = tuple(self.widget.variables.keys())
Farseer-NMR is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Farseer-NMR. If not, see <http://www.gnu.org/licenses/>. """ import json from PyQt5.QtWidgets import QDialog, QGridLayout, QVBoxLayout from PyQt5 import QtCore from core.fslibs.Variables import Variables from core.utils import get_nested_value, get_default_config_path defaults = json.load(open(get_default_config_path(), 'r')) class BasePopup(QDialog): """ Base QDialog for all Farseer-NMR popups. Parameters: parent(QWidget): parent QWidget settings_keys(str or list): specifies the keys to access popup specific settings in variables. title(str): name of the popup. Methods: .launch()