thiagoralves / OpenPLC_Editor

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

Dev python3: Fix a bug of FileDialog, add .gitignore for matiec and update README.md #42

Closed zarekvane closed 2 years ago

zarekvane commented 2 years ago

There seems to be no serious problem from editing to st generation.

1. fix a bug

When generate code menu clicked, there is an error because of the wrong parameters of FileDIalog:

Traceback (most recent call last):
  File "/home/zarek/OpenPLC_Editor/editor/BeremizIDE.py", line 682, in OnMenu
    getattr(self.CTR, method)()
  File "/home/zarek/OpenPLC_Editor/editor/ProjectController.py", line 2024, in _generateOpenPLC
    dlg = wx.FileDialog(self.AppFrame, "Save to file:", "", "", "OpenPLC Program(*.st)|*.st", wx.SAVE|wx.OVERWRITE_PROMPT)
AttributeError: module 'wx' has no attribute 'SAVE'

2. add .gitignore for matiec

Ignore the file generated by Autotools

3. update README.md