Ejemplo n.º 1
0
    def activate(self, refresh=True):
        if refresh:
            self.refresh()
        self._update_widgets()

        # FIXME: Move this to a better place when done
        if self.window.options.debug:
            from stoqlib.gui.dialogs.chartdialog import ChartDialog
            c = ChartDialog()
            c.show_all()
Ejemplo n.º 2
0
    def activate(self, params):
        # FIXME: double negation is weird here
        if not params.get('no-refresh'):
            self.search.refresh()
        self._update_widgets()

        # FIXME: Move this to a better place when done
        if self.window.options.debug:
            from stoqlib.gui.dialogs.chartdialog import ChartDialog
            c = ChartDialog()
            c.show_all()
Ejemplo n.º 3
0
    def activate(self, params):
        # FIXME: double negation is weird here
        if not params.get('no-refresh'):
            self.search.refresh()
        self._update_widgets()

        # FIXME: Move this to a better place when done
        if self.window.options.debug:
            from stoqlib.gui.dialogs.chartdialog import ChartDialog
            c = ChartDialog()
            c.show_all()