]> granicus.if.org Git - python/commitdiff
Moved the main pynche.py file to Main.py. Added minimal driver
authorBarry Warsaw <barry@python.org>
Wed, 7 Oct 1998 03:36:58 +0000 (03:36 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 7 Oct 1998 03:36:58 +0000 (03:36 +0000)
scripts pynche.py and pynche.pyw for Unix and Windows startup
respectively.  Document the .pyw file in the README.

Tools/pynche/Main.py
Tools/pynche/PyncheWidget.py
Tools/pynche/README
Tools/pynche/pynche [new file with mode: 0755]
Tools/pynche/pynche.pyw [new file with mode: 0755]

index bbf5533881b598ee1d797831b618d4e8934d3a3f..b86bea235da35fa427d1b73ff8a71f4f4a559619 100644 (file)
@@ -1,5 +1,3 @@
-#! /usr/bin/env python
-
 """Pynche: The PYthon Natural Color and Hue Editor.
 
 Pynche is based largely on a similar color editor I wrote years ago for the
index 1cdf3981e21d779a5035571932d9b44dc83280c6..e3a3b2cb60371c78f2e0eb296278e8850bd67c32 100644 (file)
@@ -101,7 +101,7 @@ class PyncheWidget:
         return self.__root
 
     def __popup_about(self, event=None):
-        from pynche import __version__
+        from Main import __version__
         tkMessageBox.showinfo('About Pynche ' + __version__,
                               '''\
 Pynche %s
index 17758841003c61b3baec0cb19d76bbff4419c5cb..2950d900de8fcc4f68d2d96ec32b376ba7981c75 100644 (file)
@@ -25,8 +25,7 @@ this reason, but you can use a different file with the -d option.  The
 file xlicense.txt contains the license only for rgb.txt.
 
 Pynche is pronounced `Pinch-ee'.  Start it by running the pynche.py
-driver.  On Windows, you probably want to rename pynche.py to
-pynche.pyw so that it doesn't bring up a console window.
+driver.  On Windows, run pynche.pyw to inhibit the console window.
 
 The top part of the main Pynche window contains the "variation
 strips".  Each strip contains a number of "color chips".  The strips
diff --git a/Tools/pynche/pynche b/Tools/pynche/pynche
new file mode 100755 (executable)
index 0000000..64bf703
--- /dev/null
@@ -0,0 +1,7 @@
+#! /usr/bin/env python
+
+"""Run this file under Unix, or when debugging under Windows.
+Run the file pynche.pyw under Windows to inhibit the console window.
+"""
+import Main
+Main.main()
diff --git a/Tools/pynche/pynche.pyw b/Tools/pynche/pynche.pyw
new file mode 100755 (executable)
index 0000000..6dfc8fe
--- /dev/null
@@ -0,0 +1,7 @@
+#! /usr/bin/env python
+
+"""Run this file under Windows to inhibit the console window.
+Run the file pynche.py under Unix or when debugging under Windows.
+"""
+import Main
+Main.main()