equal
deleted
inserted
replaced
21 # |
21 # |
22 # You should have received a copy of the GNU General Public License |
22 # You should have received a copy of the GNU General Public License |
23 # along with this program; if not, write to the Free Software |
23 # along with this program; if not, write to the Free Software |
24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
25 |
25 |
|
26 |
|
27 from __future__ import print_function |
26 import wx |
28 import wx |
27 import os |
29 import os |
28 import sys |
30 import sys |
29 import getopt |
31 import getopt |
30 |
32 |
373 |
375 |
374 class PLCOpenEditorApp(wx.App): |
376 class PLCOpenEditorApp(wx.App): |
375 # def SetOpenFile( |
377 # def SetOpenFile( |
376 |
378 |
377 def PrintUsage(self): |
379 def PrintUsage(self): |
378 print "\nUsage of PLCOpenEditor.py :" |
380 print("\nUsage of PLCOpenEditor.py :") |
379 print "\n %s [Filepath]\n" % sys.argv[0] |
381 print("\n %s [Filepath]\n" % sys.argv[0]) |
380 |
382 |
381 def ParseCommandLine(self): |
383 def ParseCommandLine(self): |
382 # Parse options given to PLCOpenEditor in command line |
384 # Parse options given to PLCOpenEditor in command line |
383 try: |
385 try: |
384 opts, args = getopt.getopt(sys.argv[1:], "h", ["help"]) |
386 opts, args = getopt.getopt(sys.argv[1:], "h", ["help"]) |