thiagoralves / OpenPLC_Editor

OpenPLC Editor - IDE capable of creating programs for the OpenPLC Runtime
GNU General Public License v2.0
387 stars 191 forks source link

TypeError: StyledTextCtrl.StartStyling(): too many arguments #30

Closed zarekvane closed 2 years ago

zarekvane commented 2 years ago

function wx.stc.StyledTextCtrl.StartStyling() only receives one parameter, but there are two in the program. May it be caused by different versions of wxPython?

branch

python3-dev

env

Windows10, wxpython4, python3.9

stack trace

when I clicked build button, it occured:

SystemError: <class 'wx._core.MouseEvent'> returned a result with an error set
Traceback (most recent call last):
  File "D:\Program Files\Python39\lib\site-packages\wx\core.py", line 3407, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
  File "D:\code\OpenPLC_Editor\editor\LogPseudoFile.py", line 76, in _write
    self.output.StartStyling(self.output.GetLength(), 0xff)
TypeError: StyledTextCtrl.StartStyling(): too many arguments