nettracer3d 0.8.3__py3-none-any.whl → 0.8.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nettracer3d/community_extractor.py +0 -1
- nettracer3d/excelotron.py +21 -2
- nettracer3d/nettracer.py +506 -79
- nettracer3d/nettracer_gui.py +605 -139
- nettracer3d/network_analysis.py +90 -29
- nettracer3d/node_draw.py +6 -2
- nettracer3d/proximity.py +50 -101
- nettracer3d/smart_dilate.py +44 -10
- {nettracer3d-0.8.3.dist-info → nettracer3d-0.8.4.dist-info}/METADATA +3 -3
- nettracer3d-0.8.4.dist-info/RECORD +24 -0
- nettracer3d-0.8.3.dist-info/RECORD +0 -24
- {nettracer3d-0.8.3.dist-info → nettracer3d-0.8.4.dist-info}/WHEEL +0 -0
- {nettracer3d-0.8.3.dist-info → nettracer3d-0.8.4.dist-info}/entry_points.txt +0 -0
- {nettracer3d-0.8.3.dist-info → nettracer3d-0.8.4.dist-info}/licenses/LICENSE +0 -0
- {nettracer3d-0.8.3.dist-info → nettracer3d-0.8.4.dist-info}/top_level.txt +0 -0
nettracer3d/excelotron.py
CHANGED
|
@@ -1238,7 +1238,7 @@ class TabbedIdentityWidget(QFrame):
|
|
|
1238
1238
|
|
|
1239
1239
|
class ExcelToDictGUI(QMainWindow):
|
|
1240
1240
|
# Add this signal
|
|
1241
|
-
data_exported = pyqtSignal(dict, str) # dictionary, property_name
|
|
1241
|
+
data_exported = pyqtSignal(dict, str, bool) # dictionary, property_name, add_status
|
|
1242
1242
|
|
|
1243
1243
|
def __init__(self):
|
|
1244
1244
|
super().__init__()
|
|
@@ -1255,6 +1255,7 @@ class ExcelToDictGUI(QMainWindow):
|
|
|
1255
1255
|
|
|
1256
1256
|
self.setWindowTitle("Excel to Python Dictionary Converter")
|
|
1257
1257
|
self.setGeometry(100, 100, 1200, 800)
|
|
1258
|
+
self.add = False
|
|
1258
1259
|
|
|
1259
1260
|
self.setup_ui()
|
|
1260
1261
|
|
|
@@ -1414,6 +1415,14 @@ class ExcelToDictGUI(QMainWindow):
|
|
|
1414
1415
|
self.export_btn.clicked.connect(self.export_dictionary)
|
|
1415
1416
|
export_layout.addWidget(self.export_btn)
|
|
1416
1417
|
|
|
1418
|
+
self.add_button = QPushButton("+")
|
|
1419
|
+
self.add_button.setFixedSize(20, 20)
|
|
1420
|
+
self.add_button.setCheckable(True)
|
|
1421
|
+
self.add_button.setChecked(False)
|
|
1422
|
+
self.add_button.clicked.connect(self.toggle_add)
|
|
1423
|
+
export_layout.addWidget(self.add_button)
|
|
1424
|
+
|
|
1425
|
+
|
|
1417
1426
|
right_layout.addLayout(export_layout)
|
|
1418
1427
|
|
|
1419
1428
|
right_widget.setLayout(right_layout)
|
|
@@ -1431,6 +1440,15 @@ class ExcelToDictGUI(QMainWindow):
|
|
|
1431
1440
|
# Add splitter to main layout
|
|
1432
1441
|
main_layout.addWidget(splitter)
|
|
1433
1442
|
|
|
1443
|
+
def toggle_add(self):
|
|
1444
|
+
|
|
1445
|
+
if self.add_button.isChecked():
|
|
1446
|
+
print("Exported Properties will be added onto existing ones")
|
|
1447
|
+
self.add = True
|
|
1448
|
+
else:
|
|
1449
|
+
print("Exported Properties will be override existing ones")
|
|
1450
|
+
self.add = False
|
|
1451
|
+
|
|
1434
1452
|
def load_template(self, template_name):
|
|
1435
1453
|
if template_name in self.templates:
|
|
1436
1454
|
# Clear existing columns
|
|
@@ -1681,12 +1699,13 @@ class ExcelToDictGUI(QMainWindow):
|
|
|
1681
1699
|
return
|
|
1682
1700
|
|
|
1683
1701
|
# Emit signal to parent application
|
|
1684
|
-
self.data_exported.emit(result_dict, property_name)
|
|
1702
|
+
self.data_exported.emit(result_dict, property_name, self.add)
|
|
1685
1703
|
|
|
1686
1704
|
# Still store in global variables for backward compatibility
|
|
1687
1705
|
import builtins
|
|
1688
1706
|
builtins.excel_dict = result_dict
|
|
1689
1707
|
builtins.target_property = property_name
|
|
1708
|
+
builtins.add = self.add
|
|
1690
1709
|
|
|
1691
1710
|
# Show success message with preview
|
|
1692
1711
|
preview = str(result_dict)
|