<commit_before># -*- coding: utf-8 -*-
"""
Created on Tue Nov 26 10:57:30 2013

@author: <NAME>, <NAME>

Main file for the pyFDA app, initializes UI
"""
from __future__ import print_function, division, unicode_literals
import sys
from PyQt4 import QtGui

#import filterbroker as fb # importing filterbroker initializes all its globals
from inputWidgets import input_all
from plotWidgets import plot_all


class pyFDA(QtGui.QMainWindow):
#class pyFDA(QtGui.QWidget):
    PLT_SAME_WINDOW =  True
    """
    Create the main window for entering the filter specifications
    """
    def __init__(self):
        self.DEBUG = True
        super(pyFDA, self).__init__()
        # read directory with filterDesigns and construct filter tree from it
#        self.ffr = FilterFileReader('Init.txt', 'filterDesign', 
#                                    commentChar = '#', DEBUG = DEBUG) # 
        
        #self.em = QtGui.QFontMetricsF(QtGui.QLineEdit.font()).width('m')

        self.initUI()     
        
    def initUI(self): 
        """
        Intitialize the main GUI, consisting of:
        - Subwindow for parameter selection [-> ChooseParams.ChooseParams()]
        - Filter Design button [-> self.startDesignFilt()] 
        - Plot Window [-> plotAll.plotAll()]
        """

        # Instantiate widget groups
        self.inputAll = input_all.InputAll() # input widgets
        self.pltAll = plot_all.plotAll() # plot widgets 
#        self.inputAll.setMaximumWidth(280)

        # ============== UI Layout =====================================
        _widget = QtGui.QWidget() # this widget contains all subwidget groups
        hbox = QtGui.QHBoxLayout(_widget) # horizontal layout of all groups
        hbox.addWidget(self.inputAll)
        hbox.addWidget(self.pltAll)

        self.setCentralWidget(_widget)

        self.setWindowTitle('pyFDA - Python Filter Design and Analysis')
        
        # ============== Signals & Slots ================================
#        self.butDesignFilt.clicked.connect(self.startDesignFilt)
        self.inputAll.inputParams.butDesignFilt.clicked.connect(self.pltAll.update)

        self.statusBar().showMessage("Application is initialized.")


#------------------------------------------------------------------------------
   <commit_msg>Cosmetic changes Signed-off-by: chipmuenk <<EMAIL>><commit_after># -*- coding: utf-8 -*-
"""
Created on Tue Nov 26 10:57:30 2013

@author: <NAME>, <NAME>

Mainwindow  for the pyFDA app, initializes UI
"""
from __future__ import print_function, division, unicode_literals
import sys
from PyQt4 import QtGui

#import filterbroker as fb # importing filterbroker initializes all its globals
from inputWidgets import input_all
from plotWidgets import plot_all

class pyFDA(QtGui.QMainWindow):
    """
    Create the main window for entering the filter specifications
    """
    def __init__(self):
        self.DEBUG = True
        super(pyFDA, self).__init__()
        # read directory with filterDesigns and construct filter tree from it
#        self.ffr = FilterFileReader('Init.txt', 'filterDesign', 
#                                    commentChar = '#', DEBUG = DEBUG) # 
        
        #self.em = QtGui.QFontMetricsF(QtGui.QLineEdit.font()).width('m')

        self.initUI()     
        
    def initUI(self): 
        """
        Intitialize the main GUI, consisting of:
        - Subwindow for parameter selection [-> ChooseParams.ChooseParams()]
        - Filter Design button [-> self.startDesignFilt()] 
        - Plot Window [-> plotAll.plotAll()]
        """

        # Instantiate widget groups
        self.inputAll = input_all.InputAll() # input widgets
        self.pltAll = plot_all.plotAll() # plot widgets 
#        self.inputAll.setMaximumWidth(280)

        # ============== UI Layout =====================================
        _widget = QtGui.QWidget() # this widget contains all subwidget groups
        hbox = QtGui.QHBoxLayout(_widget) # horizontal layout of all groups
        hbox.addWidget(self.inputAll)
        hbox.addWidget(self.pltAll)

        self.setCentralWidget(_widget)

        self.setWindowTitle('pyFDA - Python Filter Design and Analysis')
        
        # ============== Signals & Slots ================================
#        self.butDesignFilt.clicked.connect(self.startDesignFilt)
        self.inputAll.inputParams.butDesignFilt.clicked.connect(self.pltAll.update)

        self.statusBar().showMessage("Application is initialized.")

#------------------------------------------------------------------------------
   
{'fraction_non_alphanumeric': 0.1674326986211425, 'fraction_numerical': 0.007441453272050777, 'mean_word_length': 2.472644376899696, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '602018', 'n_tokens_mistral': 1302, 'n_tokens_neox': 1219, 'n_words': 311}