From: Robin Dunn <robin@alldunn.com>
Date: Tue, 17 Jan 2006 17:35:11 +0000 (+0000)
Subject: MSW Support
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a1da78b3316c392dd08dac35c14109b422471837?ds=inline

MSW Support


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/wxPython/misc/wxprojview.py b/wxPython/misc/wxprojview.py
index 5b002df75e..81abde5c1a 100755
--- a/wxPython/misc/wxprojview.py
+++ b/wxPython/misc/wxprojview.py
@@ -1,4 +1,11 @@
 #!/usr/bin/env python
+#----------------------------------------------------------------------
+#
+#  A little app I use on my system to help me remember which version of
+#  wx I am corrently working on.  I don't expect this to work for anybody
+#  else as it uses things that are specific to my setup.
+#
+#----------------------------------------------------------------------
 
 import wx
 import wx.lib.stattext as st
@@ -42,9 +49,12 @@ class MyFrame(wx.Frame):
 
 
     def OnUpdateVersion(self, evt):
-        ver = '??'
+        ver = '?.?'
         if 'wxMSW' in wx.PlatformInfo:
-            pass
+            info = open("c:/wxcurenv").read()
+            p1 = info.find("WXCUR=") + 6
+            p2 = info.find("\n", p1)
+            ver = info[p1:p2]
         else:
             link = '/opt/wx/current'
             if os.path.islink(link):