thiagoralves / OpenPLC_Editor

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

Dev python3:Fix a bug of FileDialog and add .gitignore for matiec #41

Closed zarekvane closed 2 years ago

zarekvane commented 2 years ago

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