From 097f2cdf1678c5b6086c767137b2f9d6378c2459 Mon Sep 17 00:00:00 2001 From: Pete Jemian Date: Wed, 11 May 2022 16:10:21 -0500 Subject: [PATCH 1/2] ENH #86 enable conversion of polygon widget --- adl2pydm/symbols.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/adl2pydm/symbols.py b/adl2pydm/symbols.py index 65c8f7b..10c950f 100644 --- a/adl2pydm/symbols.py +++ b/adl2pydm/symbols.py @@ -68,8 +68,7 @@ "message button": dict(type="controller", pydm_widget="PyDMPushButton"), "meter": dict(type="monitor", pydm_widget="PyDMScaleIndicator"), "oval": dict(type="static", pydm_widget="PyDMDrawingEllipse"), - # "polygon" : dict(type="static", pydm_widget="PyDMDrawingIrregularPolygon"), - "polygon": dict(type="static", pydm_widget="PyDMDrawingPolyline"), + "polygon" : dict(type="static", pydm_widget="PyDMDrawingIrregularPolygon"), "polyline": dict(type="static", pydm_widget="PyDMDrawingPolyline"), "rectangle": dict(type="static", pydm_widget="PyDMDrawingRectangle"), "related display": dict(type="static", pydm_widget="PyDMRelatedDisplayButton"), @@ -147,6 +146,9 @@ PyDMDrawingPolyline=PyDM_CustomWidget( "PyDMDrawingPolyline", "QWidget", "pydm.widgets.drawing" ), + PyDMDrawingIrregularPolygon=PyDM_CustomWidget( + "PyDMDrawingIrregularPolygon", "QWidget", "pydm.widgets.drawing" + ), PyDMEmbeddedDisplay=PyDM_CustomWidget( "PyDMEmbeddedDisplay", "QFrame", "pydm.widgets.embedded_display" ), From 94d3d068d1ebb31fe4157754ffec5f538e55db53 Mon Sep 17 00:00:00 2001 From: Pete Jemian Date: Wed, 11 May 2022 16:13:08 -0500 Subject: [PATCH 2/2] TST #86 new widget --- adl2pydm/tests/test_symbols.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adl2pydm/tests/test_symbols.py b/adl2pydm/tests/test_symbols.py index 611343c..fdb995b 100644 --- a/adl2pydm/tests/test_symbols.py +++ b/adl2pydm/tests/test_symbols.py @@ -6,7 +6,7 @@ "widget_set, length", [ [symbols.adl_widgets, 24], - [symbols.pydm_widgets, 33], + [symbols.pydm_widgets, 34], ] ) def test_symbols_dict(widget_set, length):