ssdst
this is error debug info
app-title:
beremiz
app-version:
3.0
Release: 2024-04-23
cwd:
/data/plc/openplc/Editor/editor
date:
Fri Apr 26 16:13:06 2024
e-type:
<class 'TypeError'>
e-value:
Point(): arguments did not match any overloaded call:
overload 1: too many arguments
overload 2: argument 2 has unexpected type 'float'
overload 3: argument 1 has unexpected type 'int'
overload 4: argument 1 has unexpected type 'int'
locals:
self: <graphics.LD_Objects.LD_PowerRail object at 0x775f215fa500>
scaling: (10.0, 10.0)
height: 0
interval: 0.0
i: 0
connector: <graphics.GraphicCommons.Connector object at 0x775f215fa860>
position: 20.0
platform:
Linux-6.5.0-28-generic-x86_64-with-glibc2.35
python-version:
3.10.12
self:
Parent: <editors.LDViewer.LD_Viewer object at 0x775f21541f30>
ToolTip: None
ToolTipPos: None
ToolTipTimer: <wx._core.Timer object at 0x775f201751b0>
Id: 3
oldPos: None
StartPos: None
CurrentDrag: None
Handle: (None, None)
Dragging: False
Selected: False
Highlighted: False
Pos: wx.Point(0, 0)
Size: wx.Size(3, 40)
BoundingBox: wx.Rect(0, 0, 4, 41)
Visible: False
Type: 0
Connectors: [<graphics.GraphicCommons.Connector object at 0x775f215fa860>]
RealConnectors: None
Extensions: [20, 20]
traceback:
File "/home/xxx/.local/lib/python3.10/site-packages/wx/core.py", line 3427, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "/data/plc/openplc/Editor/editor/editors/Viewer.py", line 2706, in AddNewPowerRail
powerrail = LD_PowerRail(self, values["type"], id, values["pin_number"])
File "/data/plc/openplc/Editor/editor/graphics/LD_Objects.py", line 53, in __init__
self.SetType(type, connectors)
File "/data/plc/openplc/Editor/editor/graphics/LD_Objects.py", line 240, in SetType
self.AddConnector()
File "/data/plc/openplc/Editor/editor/graphics/LD_Objects.py", line 134, in AddConnector
self.InsertConnector(len(self.Connectors))
File "/data/plc/openplc/Editor/editor/graphics/LD_Objects.py", line 144, in InsertConnector
self.RefreshConnectors()
File "/data/plc/openplc/Editor/editor/graphics/LD_Objects.py", line 196, in RefreshConnectors
connector.SetPosition(wx.Point(self.Size[0], position))
<class 'TypeError'>: Point(): arguments did not match any overloaded call:
overload 1: too many arguments
overload 2: argument 2 has unexpected type 'float'
overload 3: argument 1 has unexpected type 'int'
overload 4: argument 1 has unexpected type 'int'
wx-platform:
__WXGTK__
wx-version:
4.2.1
 
Reply 0 0
ssdst
i m try to down  version of wxpython   ,but  it is not work
Reply 0 0
ssdst
my python version is 3.10
Reply 0 0
thiagoralves
You need Python 3.9 and WxPython 4.2.0 otherwise it won’t work.
Reply 0 0
ssdst
You need Python 3.9 and WxPython 4.2.0 otherwise it won’t work.
thank u   very much,i  solved this problem  by u  way  。  by  the way  ,  do  u have any  suggest   book  to juior   openplc   developer?
Reply 0 0
ssdst
You need Python 3.9 and WxPython 4.2.0 otherwise it won’t work.
forgive   my poor english 😂
Reply 0 0
thiagoralves
Hi @ssdst I don’t think a book on OpenPLC dev exists
Reply 0 0
thiagoralves
You can start by learning Python and C. Then start examining the source code. A Python debugger (VSCode has a good one) is of great help as it allows you to run the code step by step and follow the execution
Reply 0 0
ssdst
You can start by learning Python and C. Then start examining the source code. A Python debugger (VSCode has a good one) is of great help as it allows you to run the code step by step and follow the execution
good     suggest .       thank u   very  much
Reply 0 0
Reply