From 666ad461953b9bf7f074893063069d52e4c689ce Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Fri, 6 Jan 2006 16:53:57 +0000 Subject: [PATCH] Added wsjtrc.win, configuration file for Windows. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@52 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- wsjt.py | 19 +++++++++++++------ wsjtrc.win | 8 ++++++++ 2 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 wsjtrc.win diff --git a/wsjt.py b/wsjt.py index 51ab328d0..7ecd85cf6 100644 --- a/wsjt.py +++ b/wsjt.py @@ -19,15 +19,22 @@ print "WSJT Version " + Version + ", by K1JT" print "Revision date: " + \ "$Date$"[7:-1] print "Run date: " + time.asctime(time.gmtime()) + " UTC" -try: - root.option_readfile('wsjtrc') -except: - pass -root_geom="" #See if we are running in Windows g.Win32=0 -if sys.platform=="win32": g.Win32=1 +if sys.platform=="win32": + g.Win32=1 + try: + root.option_readfile('wsjtrc.win') + except: + pass +else: + try: + root.option_readfile('wsjtrc') + except: + pass +root_geom="" + #------------------------------------------------------ Global variables appdir=os.getcwd() diff --git a/wsjtrc.win b/wsjtrc.win new file mode 100644 index 000000000..878089ec8 --- /dev/null +++ b/wsjtrc.win @@ -0,0 +1,8 @@ +*font: Arial 9 +*Label*font: Arial 9 +*Text*font: "Courier New" 10 +*background: gray85 +*Text*background: white +*Entry*background: white +*foreground: black +*Listbox*foreground: RoyalBlue