Ejemplo n.º 1
0
 def __init__(self, id, parent = None):
     QWidget.__init__(self, parent)
     self.id = id
     self.setMinimumWidth(resourceManager.get_widthest_char_size(self)
                          * self.minimum_width)
Ejemplo n.º 2
0
 def init_entry(self, entry):
     entry.setAlignment(Qt.AlignCenter)
     entry.setMaxLength(5)
     entry.setMinimumWidth(resourceManager.get_widthest_char_size(entry) * 3)
     entry.setMaximumWidth(resourceManager.get_widthest_char_size(entry) * 3)