summaryrefslogtreecommitdiff
path: root/cad/src/commands/PartProperties/PartProp.py
diff options
context:
space:
mode:
Diffstat (limited to 'cad/src/commands/PartProperties/PartProp.py')
-rwxr-xr-xcad/src/commands/PartProperties/PartProp.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/cad/src/commands/PartProperties/PartProp.py b/cad/src/commands/PartProperties/PartProp.py
new file mode 100755
index 000000000..eb30b0495
--- /dev/null
+++ b/cad/src/commands/PartProperties/PartProp.py
@@ -0,0 +1,31 @@
+# Copyright 2004-2007 Nanorex, Inc. See LICENSE file for details.
+"""
+PartProp.py
+
+$Id$
+"""
+
+from PyQt4.Qt import QDialog, SIGNAL
+from commands.PartProperties.PartPropDialog import Ui_PartPropDialog
+
+class PartProp(QDialog, Ui_PartPropDialog):
+ def __init__(self, assy):
+ QDialog.__init__(self)
+ self.setupUi(self)
+ self.connect(self.okPushButton,SIGNAL("clicked()"),self.accept)
+ self.connect(self.cancelPushButton,SIGNAL("clicked()"),self.reject)
+
+ self.nameLineEdit.setText(assy.name)
+
+ self.mmpformatLabel.setText("MMP File Format: " + assy.mmpformat)
+
+ # Get statistics of part and display them in the statView widget.
+ from commands.GroupProperties.GroupProp import Statistics
+ stats = Statistics(assy.tree)
+ stats.display(self.statsView)
+
+ def accept(self):
+ QDialog.accept(self)
+
+ def reject(self):
+ QDialog.reject(self)