From glenn at chromakinetics.com Thu Mar 1 01:52:26 2007 From: glenn at chromakinetics.com (Glenn Meader) Date: Wed, 28 Feb 2007 16:52:26 -0800 Subject: [PythonCAD] Added a bunch of stuff to the PythonCAD wiki Message-ID: <20070301005249.E408C1E4002@bag.python.org> I added a bunch of stuff to the PythonCAD wiki: * Lots of feature requests. * Installation info for Windows * Added a couple of commands to the command reference. * Added the Webpage FAQ to the Wiki FAQ * Added a feature list. * Added the File format reference from the website to the wiki. Some expert needs to add some real examples of actually using these commands. I can't figure out how to enter a command at the command line (like rect) and give the parameters properly. Exactly what do you type? Also I am having a lot of trouble with selecting things and then moving them or changing them. I can't reliably tell what's selected. How do I unselect things? Could you write a brief tutorial on how selection is supposed to work? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythoncad/attachments/20070228/b4951a1d/attachment.html From ahaas at airmail.net Thu Mar 1 02:56:08 2007 From: ahaas at airmail.net (Art Haas) Date: Wed, 28 Feb 2007 19:56:08 -0600 Subject: [PythonCAD] Added a bunch of stuff to the PythonCAD wiki Message-ID: <20070301015608.GC19751@artsapartment.org> On Wed, Feb 28, 2007 at 05:09:21PM -0800, Glenn Meader wrote: > I added a bunch of stuff to the PythonCAD wiki: > > * Lots of feature requests. > > * Installation info for Windows > > * Added a couple of commands to the command reference. > > * Added the Webpage FAQ to the Wiki FAQ > > * Added a feature list. > > * Added the File format reference from the website to the wiki. > > Can you add some real examples of actually using these commands. I can't > figure out how to enter a command at the command line (like rect) and give > the parameters properly. Exactly what do you type? I'll try out a few commands and reply shortly to this ... > Also I am having a lot of trouble with selecting things and then moving them > or changing them. I can't reliably tell what's selected. How do I unselect > things? Could you write a brief tutorial on how selection is supposed to > work? When you select an entity it is supposed to change color to (by default) an orangish shade. Unselecting a selected entity is done via 'Edit'->'Deselect' and then clicking or boxing the selected entities you want to unselect. If either of these things does not occur when you do them it is a bug. -- Man once surrendering his reason, has no remaining guard against absurdities the most monstrous, and like a ship without rudder, is the sport of every wind. -Thomas Jefferson to James Smith, 1822 From jantonio.martin at gmail.com Thu Mar 1 12:45:08 2007 From: jantonio.martin at gmail.com (=?ISO-8859-1?Q?Jos=E9_Antonio_Mart=EDn_Prieto?=) Date: Thu, 1 Mar 2007 12:45:08 +0100 Subject: [PythonCAD] New features in the wiki Message-ID: Hi, first of all, thanks a lot to the people that has contributed to the wiki in the last days/hours. I want your work to be acknowledge, so I have activated the authentication system. Now you can sign up in the PythonCAD wiki. A user asked for a method to translate the pages of the wiki. I have started the spanish translation and have explained how to make a translation in this page: http://morgul.no-ip.com/dokuwiki/doku.php?id=wiki_development If you have any questions, I'll be glad to answer them as soon as possible. Regards, Jos? Antonio -- "In a world without frontiers, who needs Gates and Windows? From glenn at chromakinetics.com Wed Mar 7 22:33:22 2007 From: glenn at chromakinetics.com (Glenn Meader) Date: Wed, 7 Mar 2007 13:33:22 -0800 Subject: [PythonCAD] Code for architectural style dimensions Message-ID: <20070307213342.A3EDB1E4002@bag.python.org> I wrote a Python function/method that returns a string that is an "Architectural" style dimension (feet, inches and fractions) given a decimal feet dimension numeric value. Do you want this code? I'm a novice Python programmer, so I don't feel confident adding stuff into PythonCAD myself. I'd like to add this to the choices for displaying dimensions "dimstr". I looked at the code for "units" to see if I could figure out what to do there, but so far I don't get it. I would still have to learn the details of how to create a patch as well. Where should I look to learn how to create a patch and submit it to you? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythoncad/attachments/20070307/ef51c7ef/attachment.html From ahaas at airmail.net Thu Mar 8 00:46:41 2007 From: ahaas at airmail.net (Art Haas) Date: Wed, 7 Mar 2007 17:46:41 -0600 Subject: [PythonCAD] Code for architectural style dimensions In-Reply-To: <20070307213342.A3EDB1E4002@bag.python.org> References: <20070307213342.A3EDB1E4002@bag.python.org> Message-ID: <20070307234641.GK16320@artsapartment.org> On Wed, Mar 07, 2007 at 01:33:22PM -0800, Glenn Meader wrote: > I wrote a Python function/method that returns a string that is an > "Architectural" style dimension (feet, inches and fractions) given a decimal > feet dimension numeric value. > > Do you want this code? Sure. Thanks for offering it. > I'm a novice Python programmer, so I don't feel confident adding stuff into > PythonCAD myself. > > I'd like to add this to the choices for displaying dimensions "dimstr". > > I looked at the code for "units" to see if I could figure out what to do > there, but so far I don't get it. I can mail you off-list to describe how things currently work. There is ample oppurtunity to improve the current design, btw. > > I would still have to learn the details of how to create a patch as well. > Where should I look to learn how to create a patch and submit it to you? Making a patch is easiest if you've checked the code out from Subversion. You edit the file(s) you want to change and then use 'svn diff' to create a patch by directing the output to a file ... $ svn checkout ... $ cd pythoncad/... { ... use your favorite editor to alter files ... } $ svn diff file1.py > file1_py.diff { ... repeat for each file you've changed ... } ... and send me the diffs. People accessing the repo with Subversion have obviously noticed I've not made any changes recently. January was unproductive, and February was similar. It has been more difficult to sit and write code lately, plus I've been doing more stuff away from the computer as of late. Art Haas -- Man once surrendering his reason, has no remaining guard against absurdities the most monstrous, and like a ship without rudder, is the sport of every wind. -Thomas Jefferson to James Smith, 1822 From jvrijkotte at sopragroup.com Tue Mar 6 15:16:30 2007 From: jvrijkotte at sopragroup.com (Vrijkotte Johannes) Date: Tue, 6 Mar 2007 15:16:30 +0100 Subject: [PythonCAD] No module named gobject Message-ID: <49833FE45105D14488C840B7FF0CD23D09ADA4@WBE01.ptx.fr.sopra> hello, I've installed pygtk 2.6.3 with notably glib-2.8.1 and gtk-2.6.10 but I can't get it to work. The gtk-demo application works OK but the pygtk-demo gives : -------- Traceback (most recent call last): File "/home/st12675/tools//PYGTK/2.6.3/solaris2.8/bin/pygtk-demo", line 7, in ? execfile(os.path.join(pygtklibdir, "pygtk-demo.py")) File "/home/st12675/tools//PYGTK/2.6.3/solaris2.8/lib/pygtk/2.0/pygtk-demo.py", line 18, in ? import gobject ImportError: No module named gobject -------- I don't understand python very well but libgobject2-0.so came with glib which I referenced in both PYTHONPATH and LD_LIBRARY_PATH What am I doing wrong? Thanks for your help chriss -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythoncad/attachments/20070306/145fd016/attachment.htm From pachi at rvburke.com Fri Mar 9 18:55:44 2007 From: pachi at rvburke.com (Rafael Villar Burke) Date: Fri, 09 Mar 2007 18:55:44 +0100 Subject: [PythonCAD] No module named gobject In-Reply-To: <49833FE45105D14488C840B7FF0CD23D09ADA4@WBE01.ptx.fr.sopra> References: <49833FE45105D14488C840B7FF0CD23D09ADA4@WBE01.ptx.fr.sopra> Message-ID: <45F19FA0.7010405@rvburke.com> Vrijkotte Johannes wrote: > hello, > I've installed pygtk 2.6.3 with notably glib-2.8.1 and gtk-2.6.10 but > I can't get it to work. > The gtk-demo application works OK but the pygtk-demo gives : > -------- > Traceback (most recent call last): > File "/home/st12675/tools//PYGTK/2.6.3/solaris2.8/bin/pygtk-demo", > line 7, in ? > execfile(os.path.join(pygtklibdir, "pygtk-demo.py")) > File > "/home/st12675/tools//PYGTK/2.6.3/solaris2.8/lib/pygtk/2.0/pygtk-demo.py", > line 18, in ? > import gobject > ImportError: No module named gobject > -------- You need to install the pygobject bindings [1] to be able to use gobject from python. http://ftp.gnome.org/pub/GNOME/binaries/win32/pygobject/ There's now an all-in-one installer for win32 users that conveniently bundles python 2.5 and gtk+ 2.12 with its python bindings (pycairo, pygobject and pygtk). You can get here: http://osl.ulpgc.es/~arc/gnome/pygtk-setup.exe Further updates to the all-in-one installer will be anounced in pygtk.org. Regards, Rafael Villar Burke pygtk.org team From adrian.maier at gmail.com Fri Mar 16 09:35:52 2007 From: adrian.maier at gmail.com (Adrian Maier) Date: Fri, 16 Mar 2007 10:35:52 +0200 Subject: [PythonCAD] Problems with running pythoncad Message-ID: Hello, I have unpacked PythonCAD-DS1-R35.tar.bz2 and installed the application by running (as root) python setup.py install. When executing ./gtkpycad.py i am getting this error : [am at dyn-9-157-129-144 PythonCAD-DS1-R35]$ ./gtkpycad.py Traceback (most recent call last): File "./gtkpycad.py", line 38, in ? from PythonCAD.Generic import imageio File "/stuff/am/src/PythonCAD-DS1-R35/PythonCAD/Generic/imageio.py", line 34, in ? import xml.parsers.expat File "/usr/lib/python2.4/site-packages/_xmlplus/parsers/expat.py", line 4, in ? from pyexpat import * ImportError: /usr/lib/python2.4/site-packages/_xmlplus/parsers/pyexpat.so: undefined symbol: XML_StopParser This seems to suggest a version mismatch with the pyexpat module. What could i try to make the application work? Any ideas? Operating system : Linux, Mandriva 2007 Python : 2.4.3 Installed rpms : pygtk2.0-2.10.1-1mdv2007.0 libexpat0-1.95.8-3mdk, libexpat0-devel-1.95.8-3mdk, expat-1.95.8-3mdk -- Adrian Maier From adrian.maier at gmail.com Fri Mar 16 16:01:41 2007 From: adrian.maier at gmail.com (Adrian Maier) Date: Fri, 16 Mar 2007 17:01:41 +0200 Subject: [PythonCAD] Problems with running pythoncad In-Reply-To: References: Message-ID: On 3/16/07, Adrian Maier wrote: > Hello, > > I have unpacked PythonCAD-DS1-R35.tar.bz2 and installed the application > by running (as root) python setup.py install. > > When executing ./gtkpycad.py i am getting this error : > > [am at dyn-9-157-129-144 PythonCAD-DS1-R35]$ ./gtkpycad.py > Traceback (most recent call last): > File "./gtkpycad.py", line 38, in ? > from PythonCAD.Generic import imageio > File "/stuff/am/src/PythonCAD-DS1-R35/PythonCAD/Generic/imageio.py", > line 34, in ? > import xml.parsers.expat > File "/usr/lib/python2.4/site-packages/_xmlplus/parsers/expat.py", > line 4, in ? > from pyexpat import * > ImportError: /usr/lib/python2.4/site-packages/_xmlplus/parsers/pyexpat.so: > undefined symbol: XML_StopParser > > This seems to suggest a version mismatch with the pyexpat module. What could i > try to make the application work? Any ideas? > > > Operating system : Linux, Mandriva 2007 > Python : 2.4.3 > Installed rpms : pygtk2.0-2.10.1-1mdv2007.0 > libexpat0-1.95.8-3mdk, > libexpat0-devel-1.95.8-3mdk, expat-1.95.8-3mdk PythonCad starts fine now. I have uninstalled a rpm called pyxml , and the error got away. Very strange ... -- Adrian Maier From glenn at chromakinetics.com Mon Mar 19 02:26:31 2007 From: glenn at chromakinetics.com (Glenn Meader) Date: Sun, 18 Mar 2007 18:26:31 -0700 Subject: [PythonCAD] Translation Message-ID: <20070319012642.1247B1E400C@bag.python.org> I notice a directory called po in the PythonCAD source that seems to be for translation of messages into Spanish. How does this work? How are these files used in combination with the Python source code? I'd like to modify the English messages in the source to make it clearer what the user is supposed to do. Will this affect the translation files? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythoncad/attachments/20070318/c5f16054/attachment.html From ahaas at airmail.net Mon Mar 19 19:01:20 2007 From: ahaas at airmail.net (Art Haas) Date: Mon, 19 Mar 2007 13:01:20 -0500 Subject: [PythonCAD] Translation In-Reply-To: <20070319012642.1247B1E400C@bag.python.org> References: <20070319012642.1247B1E400C@bag.python.org> Message-ID: <20070319180120.GA21013@artsapartment.org> On Sun, Mar 18, 2007 at 06:26:31PM -0700, Glenn Meader wrote: > I notice a directory called po in the PythonCAD source that seems to be for > translation of messages into Spanish. > > How does this work? How are these files used in combination with the Python > source code? The files in the 'po' directory are for internationalization. The file 'PythonCAD.pot' is the template file listing all the text in the code that have been marked as translatable. If you read this file you'll see each translatable string as 'msgid' and the various files in which this string was found. This file, btw, is generated with the 'xgettext' program. Someone wanting to add a translation to PythonCAD would copy the '.pot' file into a new file named 'PythonCAD.${locale}.po', where '${locale}' is the standard abbreviation for the language you are translating into. The 'PythonCAD.es.po' is the Spanish translation. I suppose that someone translating into a slightly different dialect of Spanish, such as one spoken in Mexico, would use a ${locale} like 'es_mx' or something similar. After the translator finishes adding the translated strings, the '.po' file is processed with the 'msgfmt' program to produce a file ending with the '.mo' extension. It is this file that is used by the gettext library to substitute translated strings for the english text in the code. > I'd like to modify the English messages in the source to make it clearer > what the user is supposed to do. Will this affect the translation files? Yes. Ideally what happens is all the code changes affecting translatable strings are completed several days prior to a release, and then the people providing translations have a couple of days to update their '.po' files. My comments above are just a rough summary of how the localization of programs using gettext work. The complete details can be found with the gettext documentation. Art Haas -- Man once surrendering his reason, has no remaining guard against absurdities the most monstrous, and like a ship without rudder, is the sport of every wind. -Thomas Jefferson to James Smith, 1822 From ahaas at airmail.net Wed Mar 21 21:44:19 2007 From: ahaas at airmail.net (Art Haas) Date: Wed, 21 Mar 2007 15:44:19 -0500 Subject: [PythonCAD] A few new updates are at the repo! Message-ID: <20070321204419.GJ21013@artsapartment.org> Hi. It's been far too long since I've used that subject in a mailing to the list. February was as unproductive as January, and the first couple weeks of March I'd picked up some contract work which was nice, so the last couple of days have been doing a little PythonCAD work. The code for typing in commands in the entry box has been broken for some time now, unfortunately. I'm working on fixing this problem and will hopefully have things behaving correctly soon. The existing code utilized an eval() call to execute code typically called when selecting a menu item, and somewhere along the line various 'import' statements changed and other code changes inadvertantly broke things. I'm aiming to come up with a more robust means of binding a command to the appropriate action than what is currently found in the code. Art -- Man once surrendering his reason, has no remaining guard against absurdities the most monstrous, and like a ship without rudder, is the sport of every wind. -Thomas Jefferson to James Smith, 1822 From ahaas at airmail.net Thu Mar 22 21:39:43 2007 From: ahaas at airmail.net (Art Haas) Date: Thu, 22 Mar 2007 15:39:43 -0500 Subject: [PythonCAD] Two bugs listed on Wiki page now fixed Message-ID: <20070322203943.GT21013@artsapartment.org> Hi. Took a look at the Wiki today and checked out the 'bugs' page ... http://morgul.no-ip.com/dokuwiki/doku.php?id=bugs The 'gtkstyleprefs.py' bug is now fixed as well as the problem regarding changing text size. The 'gtkstyleprefs.py' was a paste-o error from code in the 'gtkdimprefs.py' file, while the text bug was actually an error in testing an instance variable instead of using the correct method call in the TextBlock class in 'text.py'. The fixes are at the repo and just an 'svn update' away. Art -- Man once surrendering his reason, has no remaining guard against absurdities the most monstrous, and like a ship without rudder, is the sport of every wind. -Thomas Jefferson to James Smith, 1822 From ahaas at airmail.net Sun Mar 25 20:49:03 2007 From: ahaas at airmail.net (Art Haas) Date: Sun, 25 Mar 2007 13:49:03 -0500 Subject: [PythonCAD] Update for preference storing on Windows Message-ID: <20070325184903.GA21013@artsapartment.org> Hi. I've commited a patch which stores user preferences in the ${APPDATA}/PythonCAD/prefs.py path on Windows. The 'APPDATA' environment variable provides the path to store program files in, and storing the files in a 'PythonCAD' as opposed to '.pythoncad' directory is more consistent. This change is available via 'svn update'. This change, btw, should not affect Unix/Linux users. Art -- Man once surrendering his reason, has no remaining guard against absurdities the most monstrous, and like a ship without rudder, is the sport of every wind. -Thomas Jefferson to James Smith, 1822