Пример #1
0
 def _setup_symbol_combo(self):
     self._symbols = list(POINT_ICONS.keys())
     for idx, symbol in enumerate(self._symbols):
         icon = symbol_icon(symbol)
         self.ui.combo_symbol.addItem(icon, '', userData=symbol)
     self.ui.combo_symbol.setIconSize(QtCore.QSize(20, 20))
     self.ui.combo_symbol.setMinimumSize(10, 32)
Пример #2
0
    def __init__(self, layer, parent=None, edit_label=True):
        super(StyleDialog, self).__init__(parent)
        self.setWindowTitle("Style Editor")
        self.layer = layer
        self._edit_label = edit_label
        self._symbols = list(POINT_ICONS.keys())

        self._setup_widgets()
        self._connect()
Пример #3
0
    def __init__(self, layer, parent=None, edit_label=True):
        super(StyleDialog, self).__init__(parent)
        self.setWindowTitle("Style Editor")
        self.layer = layer
        self._edit_label = edit_label
        self._symbols = list(POINT_ICONS.keys())

        self._setup_widgets()
        self._connect()
Пример #4
0
 def _setup_symbol_combo(self):
     self._symbols = list(POINT_ICONS.keys())
     for idx, symbol in enumerate(self._symbols):
         icon = symbol_icon(symbol)
         self.ui.combo_symbol.addItem(icon, '', userData=symbol)
     self.ui.combo_symbol.setIconSize(QtCore.QSize(16, 16))
Пример #5
0
 def _setup_symbol_combo(self):
     self._symbols = list(POINT_ICONS.keys())
     for idx, symbol in enumerate(self._symbols):
         icon = symbol_icon(symbol)
         self.ui.combo_symbol.addItem(icon, '', userData=symbol)
     self.ui.combo_symbol.setMinimumSize(10, 32)