Ejemplo n.º 1
0
    def __init__(self, parent=None):
        super(InequalityWidget, self).__init__(parent)
        self.setStyleSheet(OfSs.dock_style)
        # Create geometry
        self.dockWidgetContents = QWidget()

        widget_list = []

        self.lorenzWidget = MatplotlibWidget(
            self.dockWidgetContents,
            title=_("Lorenz curve"),  # 'Courbe de Lorenz',
            xlabel=_('Population'),
            ylabel=_('Variable'),
            hold=True,
            xlim=[0, 1],
            ylim=[0, 1])
        widget_list.append(self.lorenzWidget)
        self.ineqFrameWidget = DataFrameViewWidget(self.dockWidgetContents)
        widget_list.append(self.ineqFrameWidget)

        verticalLayout = QVBoxLayout(self.dockWidgetContents)
        for widget in widget_list:
            verticalLayout.addWidget(widget)
        self.setLayout(verticalLayout)

        # Initialize attributes
        self.parent = parent

        self.inequality = Inequality()
    def __init__(self, parent = None):
        super(InequalityWidget, self).__init__(parent)
        self.setStyleSheet(OfSs.dock_style)
        # Create geometry
        self.dockWidgetContents = QWidget()

        widget_list = []

        self.lorenzWidget = MatplotlibWidget(self.dockWidgetContents,
                                              title= _("Lorenz curve"), # 'Courbe de Lorenz',
                                              xlabel= _('Population'),
                                              ylabel= _('Variable'),
                                              hold=True,
                                              xlim = [0,1],
                                              ylim = [0,1])
        widget_list.append(self.lorenzWidget)
        self.ineqFrameWidget = DataFrameViewWidget(self.dockWidgetContents)
        widget_list.append(self.ineqFrameWidget)

        verticalLayout = QVBoxLayout(self.dockWidgetContents)
        for widget in widget_list:
            verticalLayout.addWidget(widget)
        self.setLayout(verticalLayout)

        # Initialize attributes
        self.parent = parent

        self.inequality = Inequality()
    def setup_page(self):

        group = QGroupBox(_("Lorenz curve"))

        #x_axis

        vlayout = QVBoxLayout()
        vlayout.addWidget(group)
        vlayout.addStretch(1)
        self.setLayout(vlayout)
Ejemplo n.º 4
0
    def setup_page(self):

        group = QGroupBox(_("Lorenz curve"))

        #x_axis

        vlayout = QVBoxLayout()
        vlayout.addWidget(group)
        vlayout.addStretch(1)
        self.setLayout(vlayout)