MCPcopy Create free account
hub / github.com/echQoQ/RustSL / _create_encryption_group

Method _create_encryption_group

gui/main_window.py:126–142  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

124 return widget
125
126 def _create_encryption_group(self):
127 enc_group = QGroupBox('Encryption/Decryption')
128 enc_layout = QHBoxLayout()
129 self.enc_box = create_encryption_combobox()
130 self.encode_box = QComboBox()
131 encodings = get_encodings()
132 for enc in encodings:
133 self.encode_box.addItem(enc['label'], enc['id'])
134 default_encoding = get_default_value('encoding') or 'base64'
135 for i in range(self.encode_box.count()):
136 if self.encode_box.itemData(i) == default_encoding:
137 self.encode_box.setCurrentIndex(i)
138 break
139 enc_layout.addWidget(self.enc_box, 8)
140 enc_layout.addWidget(self.encode_box, 2)
141 enc_group.setLayout(enc_layout)
142 return enc_group
143
144 def _create_icon_group(self, folder_icon):
145 icon_widget = QWidget()

Callers 1

init_uiMethod · 0.95

Calls 3

get_encodingsFunction · 0.85
get_default_valueFunction · 0.85

Tested by

no test coverage detected