ncca-ngl 0.3.2__py3-none-any.whl → 0.3.3__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.
@@ -79,3 +79,21 @@ class TransformWidget(QFrame):
79
79
  tx.set_scale(scale.x, scale.y, scale.z)
80
80
  print(tx.get_matrix())
81
81
  self.valueChanged.emit(tx.get_matrix())
82
+
83
+ def name(self) -> str:
84
+ """
85
+ Returns:
86
+ The name of the widget.
87
+ """
88
+ return self._name
89
+
90
+ def set_name(self, name: str) -> None:
91
+ """Sets the name of the widget.
92
+
93
+ Args:
94
+ name: The new name of the widget.
95
+ """
96
+ self._name = name
97
+ self._label.setText(name)
98
+
99
+ name = Property(str, name, set_name)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: ncca-ngl
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: A Python version of the NGL graphics library.
5
5
  Author: Jon Macey
6
6
  Author-email: Jon Macey <jmacey@bournemouth.ac.uk>
@@ -73,10 +73,10 @@ ncca/ngl/widgets/mat4widget.py,sha256=7vXs5h2EtA6zy3rTpXd8dtlOg2CFeQHlrg4a4F1RMa
73
73
  ncca/ngl/widgets/rgbacolourwidget.py,sha256=dA_Ph7kTtd6ZqSvINt4qCbksMOWrsnT4TeuPfvaw4IQ,5411
74
74
  ncca/ngl/widgets/rgbcolourwidget.py,sha256=Z5t_JNUggbCDIpT3kmBtOWXtxrMNJZJxZCBGBOjBFlI,4741
75
75
  ncca/ngl/widgets/transformation_widget.py,sha256=qeEYXKEwUVdWBKz3oXiW6kbTm-MyXghoh0rfU7J3yAE,10568
76
- ncca/ngl/widgets/transformwidget.py,sha256=5Nwo1dVTVVhxTK2tNScyZc4s3nsfePvRh8dbV8Akl60,3487
76
+ ncca/ngl/widgets/transformwidget.py,sha256=_1SdGspsf4pzLHZWY2YG8moK_9KOYKx7xDIK3t9eAnI,3877
77
77
  ncca/ngl/widgets/vec2widget.py,sha256=w4GqwuiNewc2UI5PrSn6ZZYEaB_cxkpxGgrpMQ82WsM,4330
78
78
  ncca/ngl/widgets/vec3widget.py,sha256=PnmqdQ1j77v0PQC-p4lT3mTQd_Qi2Iwv9XzSP1Mpa7M,4934
79
79
  ncca/ngl/widgets/vec4widget.py,sha256=mT7c5paDaRxn-vSv7lbffg7isyD8T-6sUxOUMqJXBZs,5631
80
- ncca_ngl-0.3.2.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
81
- ncca_ngl-0.3.2.dist-info/METADATA,sha256=qie_EczaljTi9nHFBUpcOLdcs4H-tUKKRHTu5opRegM,1596
82
- ncca_ngl-0.3.2.dist-info/RECORD,,
80
+ ncca_ngl-0.3.3.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
81
+ ncca_ngl-0.3.3.dist-info/METADATA,sha256=CZCLDKRDuVkByNC2H1aDk-rK3IZt1Y0YJfQrhJ2SZ9U,1596
82
+ ncca_ngl-0.3.3.dist-info/RECORD,,