コード例 #1
0
ファイル: __init__.py プロジェクト: jaymzh/anaconda
    def refresh(self, args=None):
        """This methods fills the self.window list by all the objects
        we want shown on this screen. Title and Spokes mostly."""
        TUIObject.refresh(self, args)

        self._container = ListRowContainer(2, columns_width=39, spacing=2)

        for w in self._spokes_map:
            self._container.add(w, callback=self._item_called, data=w)

        self.window.add_with_separator(self._container)
コード例 #2
0
ファイル: __init__.py プロジェクト: sundeep-anand/anaconda
    def refresh(self, args=None):
        """This methods fills the self.window list by all the objects
        we want shown on this screen. Title and Spokes mostly."""
        TUIObject.refresh(self, args)

        self._container = ListRowContainer(2, columns_width=39, spacing=2)

        for w in self._spokes_map:
            self._container.add(w, callback=self._item_called, data=w)

        self.window.add_with_separator(self._container)
コード例 #3
0
ファイル: __init__.py プロジェクト: jn7163/anaconda
    def refresh(self, args=None):
        """This methods fills the self._window list by all the objects
        we want shown on this screen. Title and Spokes mostly."""
        TUIObject.refresh(self, args)

        def _prep(i, w):
            number = tui.TextWidget("%2d)" % i)
            return tui.ColumnWidget([(3, [number]), (None, [w])], 1)

        # split spokes to two columns
        left = [_prep(i, w) for i, w in self._keys.iteritems() if i % 2 == 1]
        right = [_prep(i, w) for i, w in self._keys.iteritems() if i % 2 == 0]

        c = tui.ColumnWidget([(39, left), (39, right)], 2)
        self._window.append(c)

        return True
コード例 #4
0
ファイル: __init__.py プロジェクト: KosiehBarter/anaconda
    def refresh(self, args=None):
        """This methods fills the self._window list by all the objects
        we want shown on this screen. Title and Spokes mostly."""
        TUIObject.refresh(self, args)

        def _prep(i, w):
            number = tui.TextWidget("%2d)" % i)
            return tui.ColumnWidget([(3, [number]), (None, [w])], 1)

        # split spokes to two columns
        left = [_prep(i, w) for i, w in self._keys.items() if i % 2 == 1]
        right = [_prep(i, w) for i, w in self._keys.items() if i % 2 == 0]

        c = tui.ColumnWidget([(39, left), (39, right)], 2)
        self._window.append(c)

        return True
コード例 #5
0
ファイル: __init__.py プロジェクト: sandrobonazzola/anaconda
 def refresh(self, args=None):
     TUIObject.refresh(self, args)
コード例 #6
0
ファイル: __init__.py プロジェクト: cyclefusion/anaconda
 def refresh(self, args=None):
     TUIObject.refresh(self, args)
     return True
コード例 #7
0
ファイル: __init__.py プロジェクト: bcl/anaconda
 def refresh(self, args=None):
     TUIObject.refresh(self, args)
     return True
コード例 #8
0
ファイル: __init__.py プロジェクト: jaymzh/anaconda
 def refresh(self, args=None):
     TUIObject.refresh(self, args)