예제 #1
0
class mainPanel(ttk.Frame):
    """
    """
    def __init__(self, master):
        """
        """
        ttk.Frame.__init__(self, master)
        self.fileSelection = FileSelectionPanel(self)
        self.constraintPanel = ConstraintSelectionPanel(self)
        self.NOEDrawing = NOEDrawingPanel(self)
        self.panelsList = [self.fileSelection, self.constraintPanel]
        self.widgetCreation()

    def widgetCreation(self):
        """
        """
        self.fileSelection.grid(row=0, column=0)
        self.constraintPanel.grid(row=1, column=0)
        self.NOEDrawing.grid(row=2, column=0)

    def getInfo(self):
        """
        """
        infos = dict()
        for panel in self.panelsList:
            infos.update(panel.getInfo())
        return infos
예제 #2
0
 def __init__(self, master):
     """
     """
     ttk.Frame.__init__(self, master)
     self.fileSelection = FileSelectionPanel(self)
     self.constraintPanel = ConstraintSelectionPanel(self)
     self.NOEDrawing = NOEDrawingPanel(self)
     self.panelsList = [self.fileSelection, self.constraintPanel]
     self.widgetCreation()