Пример #1
0
class FindUsagesHeader(HorizontalSizer):
    def __init__(self, parent, header, usages_callback):
        HorizontalSizer.__init__(self)
        self._header = HeaderLabel(parent, header)
        self.add_expanding(self._header)
        self.add(ButtonWithHandler(parent, 'Find Usages', usages_callback))

    def SetLabel(self, label):
        self._header.SetLabel(label)
Пример #2
0
 def _create_header(self, text, readonly=False):
     if readonly:
         text += ' (READ ONLY)'
     self._title_display = HeaderLabel(self, text)
     return self._title_display