Re: Tkinter fullscreen with Mac OS X

2008-08-06 Thread C Martin
On Jul 28, 6:43 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > > You could try this, supposing tl is a toplevel: > > tl.tk.call("::tk::unsupported::MacWindowStyle", "style", tl._w, "plain", > "none") > I tried this (although, my tl is actually a tk instance): self.tk.call("::tk::unsupported::

Tkinter fullscreen with Mac OS X

2008-07-28 Thread C Martin
Is there a way to create a full screen app using Tkinter with Mac OS X?? On windows, this is relatively easy with overrideredirect(1). However, on the Mac, the top menu bar and dock are still displayed over the app. Is there a way to get rid of them? Thanks. -- http://mail.python.org/mailman/listi

Re: Using Tcl extensions with Python?

2008-07-18 Thread C Martin
On Jul 17, 5:18 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: [snip] > And.. for tkpng specifically, you won't need tk.call to use it, you > just need to create your images using Tkinter.PhotoImage with a "png" > type. Thank you Guilherme, that's all great info. > Thomas Troeger <[EMAIL PROTECT

Using Tcl extensions with Python?

2008-07-17 Thread C Martin
How do you setup a Tcl extension to be accessible through Python? I understand that I'll have to use native Tcl calls to use it (tk.call() etc), but I can't figure out where to put the files or how to initialize them so I can call them. The package I would like to use is TkPNG: http://www.muonics

Re: Tkinter variable trace problem

2008-01-09 Thread C Martin
Thank you for your replies. I understand there are better ways to handle 'normal' UI behavior, but I was curious about the trace feature and wanted to understand how it worked. I may not actually need it in my project, but I wanted to see what my options were. Thanks again.

Tkinter variable trace problem

2008-01-07 Thread C Martin
What am I doing wrong in this code? The callback doesn't work from the Entry widget. ##start code import Tkinter tk = Tkinter.Tk() var = Tkinter.StringVar() print var._name def cb(name, index, mode): print "callback called with name=%r, index=%r, mode=%r" % (name, index, mode) varValue =

Re: shelve seg error

2005-12-07 Thread Philippe C. Martin
OK, Thanks On Tue, 06 Dec 2005 15:41:08 +0100, Fredrik Lundh wrote: > Philippe C. Martin wrote: > >> Can I ask anydb which db it's using ? > > the page says > > If the database file already exists, the whichdb module is used to > determine its >

Re: shelve seg error

2005-12-06 Thread Philippe C. Martin
Can I ask anydb which db it's using ? Regards, Philippe On Tue, 06 Dec 2005 15:07:19 +0100, Fredrik Lundh wrote: > Philippe C. Martin wrote: > >> This code however works, which seems to me means the problem is with the >> default database used by shelve ... whic

Re: shelve seg error

2005-12-06 Thread Philippe C. Martin
Regards, Philippe On Tue, 06 Dec 2005 05:53:22 -0600, Philippe C. Martin wrote: > Hi, > > I just installed (compiled) Python 2.4.2 under Suse 10. > > The following code generates a seg error: > > import shelve > print shelve.open ('test') > > I as

shelve seg error

2005-12-06 Thread Philippe C. Martin
Hi, I just installed (compiled) Python 2.4.2 under Suse 10. The following code generates a seg error: import shelve print shelve.open ('test') I assume this has to do with the db behind shelve. How do I go about tracing/fixing the problem ? Regards, Philippe -- http://mail.python.org/mailm

Re: SCPocketGrades released

2005-12-03 Thread Philippe C. Martin
oops: www.snakecard.com/src On Sat, 03 Dec 2005 12:26:52 -0600, Philippe C. Martin wrote: > Dear all, > > I am very pleased to announce the release of SCPocketGrades V 0.1. > > SCPocketGrades is a GPL U3 smart drive-based grade book application. > > SCPocketGrades is code

SCPocketGrades released

2005-12-03 Thread Philippe C. Martin
Dear all, I am very pleased to announce the release of SCPocketGrades V 0.1. SCPocketGrades is a GPL U3 smart drive-based grade book application. SCPocketGrades is coded in Python, wxPython, and C. SCPocketGrades' main features are: - (U3): no PC installation + data saved on smart drive (no m

os.chdir + GUI question

2005-12-03 Thread Philippe C. Martin
ectory but found myself in the windows desktop. Any clue ? Regards, Philippe -- SnakeCard, LLC Philippe C. Martin www.snakecard.com -- http://mail.python.org/mailman/listinfo/python-list

Re: how to run an external program...

2005-12-01 Thread Philippe C. Martin
hi, What do you need by "control" ? look at os.system/execv/popen ...; Regards, Philippe On Thu, 01 Dec 2005 11:57:03 -0800, ash wrote: > hi, > i want to know is there a way to run/control an external program form > within a python program? > thanks in advance for any support. -- http://ma

SCU3 Python package 0.2 released: wxPython support added

2005-12-01 Thread Philippe C. Martin
Dear all, I have released SCU3Python.u3p (www.snakecard.com/src) . It includes: - SCU3 0.1: a python wrapper for the U3 SDK (www.u3.com) - Python 2.4.2 - wxPython 2.6 (ansi) - A hello-World-style basic wxPython application which shows how to retrieve the U3 information (ex: current virtual disks

Re: Writing pins to the RS232

2005-11-28 Thread Philippe C. Martin
Hi, Some of it should be doable on windows: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcecoreos5/html/wce50lrfescapecommfunction.asp Yet this might require a new wrapper module for I am not sure what the current interface lets you do. Not sure about Linux. Regards; Phili

SCU3 and Python packaged for U3 (with SCU3) V 0.1 released

2005-11-27 Thread Philippe C. Martin
Dear all, I am very happy to announce the release of SCU3 V 0.1 and SCU3Python.u3p V. 0.1. SCU3 is a python wrapper for U3 compliante devices SCU3Python.u3p is a Python binary (2.4.2) packaged with SCU3 that allows to launch idle from the U3 device launchpad Both may be found on www.snakecard.co

Re: Crash in python while run from U3 device

2005-11-26 Thread Philippe C. Martin
PS: I should add that the U3 device does not actually run Python, but copies it to the PC and launches it: I'm almost certain this is a bug in my code. Help please ! Regards, Philippe Philippe C. Martin wrote: > Hi, > > I am currently porting some of my applications to U3 (w

Re: Crash in python while run from U3 device

2005-11-26 Thread Philippe C. Martin
Philippe C. Martin wrote: > Hi, > > I am currently porting some of my applications to U3 (www.u3.com) and I do > get a crash in ...objects\frameobject.c: PyFrameObject *back = > tstate->frame. > > The point of the current test is to get a python function called on a U3

Crash in python while run from U3 device

2005-11-26 Thread Philippe C. Martin
Hi, I am currently porting some of my applications to U3 (www.u3.com) and I do get a crash in ...objects\frameobject.c: PyFrameObject *back = tstate->frame. The point of the current test is to get a python function called on a U3 device event. (U3 only work with Windows currently). My C stub cal

Re: Python install minimum requirements

2005-11-22 Thread Philippe C. Martin
Thanks I'll take a look. PS: www.u3.com Regards, Philippe [EMAIL PROTECTED] wrote: > If I found the right "U3" when I googled, then maybe this is relevant: > http://www.voidspace.org.uk/python/movpy/ > > Jeff -- http://mail.python.org/mailman/listinfo/python-list

Python install minimum requirements

2005-11-21 Thread Philippe C. Martin
Hi, I am attemtping to package Python in a "U3" install program for Windows. I got Python to compile/link and prior to adding the necessary code for the U3 SDK registration, I would like to know where I can find the actual list of files needed for a minimum installation (are DLLs and libs enough

Re: compiling Python under Windows

2005-11-21 Thread Philippe C. Martin
Thanks, Regards, Philippe "Martin v. Löwis" wrote: > Philippe C. Martin wrote: >>>My mistake: The makefile (as written in the readme!) looks for bzip 1.0.2 >>> >> >> PS: since bzip.org does not have 1.0.2 source anymore, can I just rename >>

Re: compiling Python under Windows

2005-11-21 Thread Philippe C. Martin
Philippe C. Martin wrote: > My mistake: The makefile (as written in the readme!) looks for bzip 1.0.2 > PS: since bzip.org does not have 1.0.2 source anymore, can I just rename 1.0.3 ? Regards, Philippe > Sorry, > > Philippe > > > > Philippe C. Martin

Re: compiling Python under Windows

2005-11-21 Thread Philippe C. Martin
My mistake: The makefile (as written in the readme!) looks for bzip 1.0.2 Sorry, Philippe Philippe C. Martin wrote: > Hi, > > I'm currently blocking on bzip2: > > python is in c:\python.2.4.2 > and bz2 is in c:\bzip2-1.0.3 > > Since the readme say subproje

compiling Python under Windows

2005-11-21 Thread Philippe C. Martin
Hi, I'm currently blocking on bzip2: python is in c:\python.2.4.2 and bz2 is in c:\bzip2-1.0.3 Since the readme say subprojects should be two directories above PCbuild, I assume I'm OK. I added c:\bzip2-1.0.3 to the include and link path, but I get: """ Performing Pre-Link Event ... The system

SnakeCard on sourceforge

2005-11-18 Thread Philippe C. Martin
Dear all, The SnakeCard product line is now hosted on sourceforge.net: SCFB - http://sourceforge.net/projects/sctoolkits SC-ID - http://sourceforge.net/projects/sc-id I will keep posting the snapshots on www.snakecard.com as well as SCLOGON and SCWEB until they take shape ;-) Regards, Philip

Python and U3 devices

2005-11-17 Thread Philippe C. Martin
Dear all, Has anyone attempted to compile Python for a U3 device ? Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: SnakeCard products source code

2005-11-14 Thread Philippe C. Martin
I have not tested it with longhorn yet, but it works fine with XP-pro and 2000. Regards, Philippe Kris wrote: > Thanks for sharing it. I am interested in the GINA part. > > > Philippe C. Martin wrote: >> Dear all, >> >> The source code is ava

SnakeCard products source code

2005-11-14 Thread Philippe C. Martin
Dear all, The source code is available in the download section: www.snakecard.com Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: SnakeCard goes open source

2005-11-13 Thread Philippe C. Martin
I forgot SC-School-ID and SC-Corporate-ID: software = Python, GUI = wxWidget, Applets JavaCard and BasicCard. Regards, Philippe Philippe C. Martin wrote: > Dear all, > > I have decided to focus my activities on development and support. > > I will release SnakeCard's pro

SnakeCard goes open source

2005-11-13 Thread Philippe C. Martin
Dear all, I have decided to focus my activities on development and support. I will release SnakeCard's produt line source code under the GPL licence this week (www.snakecard.com) ... I need to fix the site. It includes: SCF: SnakeCard Framework (software=Python) SCFB: SnaleCard Framework Bundle

Re: user account logon from python

2005-11-08 Thread Philippe C. Martin
Hi Mike, Mike Meyer wrote: >> 1- I cannot find getpwent in the documentation > > getpwent is a Unix library call. For python, you want the pwd > module. The docs are http://docs.python.org/lib/module-pwd.html >. > I must be blind but still do not see it - do you mean getpwnam ? >> 2- crypt w

Re: user account logon from python

2005-11-08 Thread Philippe C. Martin
rite("titi") f.close() Philippe C. Martin wrote: > Jeff, > > 1- I cannot find getpwent in the documentation > 2- crypt will not work if the system does not have shadow pw > 3- Even as root I get "Operation not permitted" using setuid and setgid > ... but I assu

Re: user account logon from python

2005-11-08 Thread Philippe C. Martin
Jeff, 1- I cannot find getpwent in the documentation 2- crypt will not work if the system does not have shadow pw 3- Even as root I get "Operation not permitted" using setuid and setgid ... but I assume it is because I cannot get 1 and/or 2 to work. Can you direct me to some link that would expla

Re: user account logon from python

2005-11-08 Thread Philippe C. Martin
That helps a lot, thanks. Regards, Philippe [EMAIL PROTECTED] wrote: > "login APIs" vary widely from system to system. > > Classic Unix systems use calls like getpwent and crypt to check passwords, > and then call setuid, setgid and setgroups to set the identity of the user > who is > logging

user account logon from python

2005-11-08 Thread Philippe C. Martin
Hi, I am attempting to write a linux logon manager with python. Can python access login APIs (which module ?) or do I need to write a wrapper ? Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter and X11

2005-11-07 Thread Philippe C. Martin
Thanks jeff, I actually want that Tkinter application to be the greater: replace gdm Still feasible as far as Tkinter is conserned ? Thanks and regards, Philippe [EMAIL PROTECTED] wrote: > There should be no problem with this. After all, even the "greeter" is > just an > X application.

Tkinter and X11

2005-11-07 Thread Philippe C. Martin
Hi, Is there anything that prevents tkinter from running prior to login to an X11 session: as the X server is already up ? Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: starting an X11 session from Python

2005-11-06 Thread Philippe C. Martin
Thanks I will look, I intend to use tkinter for the display as it is built-in though. Regards, Philippe Richard Townsend wrote: > On Sat, 05 Nov 2005 19:51:40 +, Philippe C. Martin wrote: > >> Hi, >> >> Have there been any attempt to do so, and is there any

Re: starting an X11 session from Python

2005-11-05 Thread Philippe C. Martin
PS: my goal is to write an equivalent of gdm/kdm/xdm ... in python Regards, Philippe Philippe C. Martin wrote: > Nothing, but that was not my question. > > Regards, > > Philippe > > > Sybren Stuvel wrote: > >> Philippe C. Martin enlightened us with: >

Re: starting an X11 session from Python

2005-11-05 Thread Philippe C. Martin
Nothing, but that was not my question. Regards, Philippe Sybren Stuvel wrote: > Philippe C. Martin enlightened us with: >> Have there been any attempt to do so, and is there any source out >> there that could help me get started ? > > What's stopping you from usi

starting an X11 session from Python

2005-11-05 Thread Philippe C. Martin
Hi, Have there been any attempt to do so, and is there any source out there that could help me get started ? Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: Python gui

2005-11-05 Thread Philippe C. Martin
Thanks, Tkinter it is. Regards, Philippe Diez B. Roggisch wrote: > Philippe C. Martin wrote: >> Hi, >> >> Is wxWidget now part of python ? or will it be ? > > 1) No. 2) I guess no. Because it has pretty heavy dependencies (wx, > GTK/other toolkit) > > &

Python gui

2005-11-05 Thread Philippe C. Martin
Hi, Is wxWidget now part of python ? or will it be ? regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

SCLOGON 0.1 Smart Card event daemon for GNU/Linux

2005-11-05 Thread Philippe C. Martin
Dear all, This is to announce the release of the event deamon I intend to use in SCLOGIN; a GPL project that attempts to: 1) give the current logon managers (gdm, kdm, ...) the necessary plugins to support vendor-independant smart card logon 2) be a complete logon manager itself SCLOGIN will be

scweb pre-release 0.1

2005-11-01 Thread Philippe C. Martin
Dear all, referring to www.snakecard.com/WordPress: As I am _very_ much struggling with xpcom and pyxpcom, I have put on www.snakecard.com/SCWEB: 1) the cgi scripts 2) a firefox plugin which simulates the xpcom (ie: access to the external device ... smart card) and talks to the cgi scripts The

Re: tool for syntax coloring in html

2005-10-26 Thread Philippe C. Martin
I use gvim. regards, Philippe Xah Lee wrote: > in some online documentations, for examples: > > http://perldoc.perl.org/perlref.html > http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme-Z-H-17.html > http://www.haskell.org/hawiki/HaskellDemo > > the codes are syntax colored. > > Is th

SCWEB 0.1 to be released

2005-10-25 Thread Philippe C. Martin
Dear all, I intend to release withing the next very few week the version 0.1 of SCWEB, a cross-platform web authentication platform _mostly_ written in Python and adaptable to most programming languages. SCWEB will come with server modules (cgi), client modules (Firefox extension/plugin and XPCOM

pyxpcom and firefox

2005-10-25 Thread Philippe C. Martin
Hi, I write this post here because I do not manage to get in touch with mozilla dev people: *** [EVAL-IN] irc.mozilla.org [ERROR] ReferenceError: irc is not defined *** I have two questions: 1) has anyone compiled/installed pyxpcom with firefox 1.5xx ? 2) is there a plan to make it

Re: python cgi script not understood as html

2005-10-24 Thread Philippe C. Martin
It is, thanks. Philippe Peter Hansen wrote: > Philippe C. Martin wrote: >> The following code outputs the actual HTML text to the browser, not the >> interpreted text. >> >> html_ok = """ >> Content-Type: text/html\n >> > "http://

Re: python cgi script not understood as html

2005-10-24 Thread Philippe C. Martin
Many thanks !! Regards, Philippe Mitja Trampus wrote: > Philippe C. Martin wrote: >> Hi, >> >> The following code outputs the actual HTML text to the browser, not the >> interpreted text. >> >> Any idea ? >> >> html_ok = ""&quo

Re: python cgi script not understood as html

2005-10-24 Thread Philippe C. Martin
the title should say "python cgi script html output not understood as html" Philippe C. Martin wrote: > Hi, > > The following code outputs the actual HTML text to the browser, not the > interpreted text. > > Any idea ? > > Regards, > > Philippe >

python cgi script not understood as html

2005-10-24 Thread Philippe C. Martin
Hi, The following code outputs the actual HTML text to the browser, not the interpreted text. Any idea ? Regards, Philippe import cgi import logging import auth #this is the one you must implement (or use SCF ;-) html_ok = """ Content-Type: text/html\n http://www.w3.org/TR/html4/loose.dtd";>\n

Re: how to modify text in html form from python

2005-10-21 Thread Philippe C. Martin
some thinking before I ask more questions. Regards, Philippe Mike Meyer wrote: > "Philippe C. Martin" <[EMAIL PROTECTED]> writes: >> Mike Meyer wrote: >>> I don't know much about plugins. I believe they get started when the >>> page loads, w

Re: how to modify text in html form from python

2005-10-21 Thread Philippe C. Martin
Mike Meyer wrote: > > I don't know much about plugins. I believe they get started when the > page loads, which gives you a chance to do the authentication when you > want it done. Well not in this case actually: the user triggers the plugin which in turn open the url, so the connection is "owne

Re: how to modify text in html form from python

2005-10-21 Thread Philippe C. Martin
Mike Meyer wrote: > "Philippe C. Martin" <[EMAIL PROTECTED]> writes: > >> I feel fairly stupid ... but to my defense in the past 17 years of >> coding, i've only spent 3 days looking at web stuff: >> >> I now can understand how "writing&q

Re: how to modify text in html form from python

2005-10-21 Thread Philippe C. Martin
). Thanks anyway. Regards, Philippe Paul Rubin wrote: > "Philippe C. Martin" <[EMAIL PROTECTED]> writes: >> * HOW (if there's a better way let me know please) ** >> As I have not found any better solution yet, I am trying to do the >> foll

Re: how to modify text in html form from python

2005-10-21 Thread Philippe C. Martin
I don't want to open another socket/port but stick to http:80 Regards, Philippe Mike Meyer wrote: > "Philippe C. Martin" <[EMAIL PROTECTED]> writes: > >> Mike, >> >> Here is what I am trying to do: >> >> WHAT >> -)

Re: how to modify text in html form from python

2005-10-21 Thread Philippe C. Martin
Mike Meyer wrote: > "Philippe C. Martin" <[EMAIL PROTECTED]> writes: > > > > Some. To continue clarifying: > > The phrase "cgi script" refers to a server-side script that is run in > response to the user clicking something on the client. Tha

Re: how to modify text in html form from python

2005-10-21 Thread Philippe C. Martin
the form field and gives it to its local smart card ... (this a couple of time) -) the cgi script gets the final verdict from the server smart card and acts accordingly. I hope that is clearer. Regards, Philippe Mike Meyer wrote: > "Philippe C. Martin" <[EMAIL PROTECTED

Re: how to modify text in html form from python

2005-10-21 Thread Philippe C. Martin
have not yet found an easier way. Regards, Philippe Paul McNett wrote: > Philippe C. Martin wrote: >> PS: If my question is not clear, I am trying to "share" the form between >> the client and server. >> >> just as many sites out there allow you to m

Re: how to modify text in html form from python

2005-10-21 Thread Philippe C. Martin
ion, sorry. Philippe Philippe C. Martin wrote: > Hi, > > I am trying to change the data in a form field from python. The following > code does not crash but has no effect as if "form" is just a copy of the > original html form. > > Must I recreate the form order to

how to modify text in html form from python

2005-10-21 Thread Philippe C. Martin
Hi, I am trying to change the data in a form field from python. The following code does not crash but has no effect as if "form" is just a copy of the original html form. Must I recreate the form order to do that ? My point is for the client to be able to re-read the modified data. Thanks, P

Re: Looking for client+server sample code (httplib and/or urlib)

2005-10-21 Thread Philippe C. Martin
I have found what I needed ... in one of my books :E) Philippe Philippe C. Martin wrote: > Hi, > > Are there such samples/tutorial out there ? > > Regards, > > Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: http/urlib pos/get question (newbie)

2005-10-21 Thread Philippe C. Martin
I have found what I needed ... in one of my books :E) regards, Philippe Philippe C. Martin wrote: > Hi, > (I am _very_ new to web programming) > > I am writing a client module (browser plugin) and server module (Python > CGI) that need to exchange information. > > I wa

Looking for client+server sample code (httplib and/or urlib)

2005-10-21 Thread Philippe C. Martin
Hi, Are there such samples/tutorial out there ? Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

http/urlib pos/get question (newbie)

2005-10-20 Thread Philippe C. Martin
Hi, (I am _very_ new to web programming) I am writing a client module (browser plugin) and server module (Python CGI) that need to exchange information. I want the transaction to be intiated when the client accesses the link. I need data to go back and forth between the client and the server (c

Re: wxPython + pyPlot

2005-10-18 Thread Philippe C. Martin
My mistake, I understood plot (as in "from wx.lib.plot import *" that comes with wxwidgets and which does have a demo) Sorry, Philippe Robert wrote: > Philippe C. Martin wrote: > >> I think wxWidget comes with a sample >> >> Philippe > Yes I use it,

Re: Vim capable IDE?

2005-10-18 Thread Philippe C. Martin
True and I had to give up emacs when I went to eclipse, but it was well worth it. I seem to recall that sourcenavigator allowed to configure an external editor (or maybe was it sniff+ ?) Regards, Philippe Chris Lasher wrote: > Thanks for your responses, guys. I can't get the PIDA page to come

Re: wxPython + pyPlot

2005-10-18 Thread Philippe C. Martin
I think wxWidget comes with a sample Philippe Robert wrote: > Maebe, does anyone have some examples with wxPython and pyplot? > > Thanks again, > Robert -- http://mail.python.org/mailman/listinfo/python-list

Re: A Logging System for Python

2005-10-17 Thread Philippe C. Martin
Even better ! Thanks, Philippe Robert Kern wrote: > Philippe C. Martin wrote: >> Dear all, >> >> I have been looking for a logging system and have come across >> http://www.red-dove.com/python_logging.html. >> >> As the site refers to PEP 28

A Logging System for Python

2005-10-17 Thread Philippe C. Martin
Dear all, I have been looking for a logging system and have come across http://www.red-dove.com/python_logging.html. As the site refers to PEP 282, I assume this package is a potential contender for integration in the Python distribution. Am I correct and if so is there any trend to include it i

Re: how to capture key pressing

2005-10-10 Thread Philippe C. Martin
Hi, Look at curses. Philippe billie wrote: > Hi all. I'm searching for a module that permit me to costantly log every > key pressed on the keyboard and eventually assign it a function (e.g. when > "esc" is pressed: exit program"). -- http://mail.python.org/mailman/listinfo/python-list

Re: Idle

2005-10-04 Thread Philippe C. Martin
Hi, I remember having that when the wrong version of TCL/TK was installed on my system. Regards, Philippe Hrvoje Blazevic wrote: > How do I get Idle to work on Linux? > > I've tried to compile 2.4.2 on Fedora core 4, and Suse 9.3, but Idle is > after make install either missing (Fedora), or

Re: How to protect Python source from modification

2005-09-12 Thread Philippe C. Martin
Hi, Why not just releasing the *.pyc ? Regards, Philippe Frank Millman wrote: > Hi all > > I am writing a multi-user accounting/business system. Data is stored in > a database (PostgreSQL on Linux, SQL Server on Windows). I have written > a Python program to run on the client, which uses w

Re: which reg values modified my python installer under windows

2005-09-06 Thread Philippe C. Martin
Yes Keir, Thanks a lot. Regards; Philippe keirr wrote: > Philippe, > > Windows file associations are in > HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts > > Hope that helps you. > > All the best, > > Keir. -- http://mail.python.org/mailman/listinfo/python

Re: which reg values modified my python installer under windows

2005-09-06 Thread Philippe C. Martin
Keir, I forgot to mention that I want to do it automatically from my application's installer. Regards, Philippe keirr wrote: > Philippe, > > You wrote: I wish to associate *.pyc with pythonw.exe > > is there some reason why Tools->Folder Options->File Types (from a > Windows Explorer me

which reg values modified my python installer under windows

2005-09-06 Thread Philippe C. Martin
Hi, I am looking for the reg path that is modified/created by the pyton installer to associate *.pyc with python.exe as I wish to associate *.pyc with pythonw.exe Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

which reg values modified my python installer under windows

2005-09-06 Thread Philippe C. Martin
Hi, I am looking for the reg path that is modified/created by the pyton installer to associate *.pyc with python.exe as I wish to associate *.pyc with pythonw.exe Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: How to find Python path in Visual C++ install wizard

2005-08-13 Thread Philippe C. Martin
Thanks you all. As my software has python "executables" and libraries + c++ libs, the HKEY_LOCAL should be myt way out. Best regards, Philippe Philippe C. Martin wrote: > Hi, > > I realize this is not really a Python question but ... > > I am trying to setu

How to find Python path in Visual C++ install wizard

2005-08-13 Thread Philippe C. Martin
Hi, I realize this is not really a Python question but ... I am trying to setup an .msi for my software (Python code (.pyc) + drivers) to make installation easier for Windows users. I am using the installer that comes with V. C++ 7.1. I would like to find the way to make sure Python is installe

Re: returning list of strings from Python COM to Visual basic 6

2005-07-21 Thread Philippe C. Martin
I guess that also means (which makes sense) that the returned object has to be registered as a COM object. However, in my case, I just needed that object to pass it to yet another object, I did not need to use it from VB Regards, Philippe Philippe C. Martin wrote: > Thanks a bu

Re: returning list of strings from Python COM to Visual basic 6

2005-07-21 Thread Philippe C. Martin
L PROTECTED] > > [mailto:[EMAIL PROTECTED] Behalf Of > > Philippe C. Martin > > Sent: Thursday, July 21, 2005 1:42 AM > > To: python-list@python.org > > Subject: Re: returning list of strings from Python COM to > > Visual basic 6 > > > > > > I ca

Re: returning list of strings from Python COM to Visual basic 6

2005-07-20 Thread Philippe C. Martin
7;instance' can not be converted to a COM VARIANT" Is there a way out ? Thanks, Philippe Philippe C. Martin wrote: > Hi, > > Is it possible ? > > ex: return ['1','2'] > > If so which type should I use in VB ? > >

Re: returning list of strings from Python COM to Visual basic 6

2005-07-20 Thread Philippe C. Martin
Sorry, it was in the book: Variant ! Regards; Philippe Philippe C. Martin wrote: > Hi, > > Is it possible ? > > ex: return ['1','2'] > > If so which type should I use in VB ? > > dim res as ??? &

returning list of strings from Python COM to Visual basic 6

2005-07-20 Thread Philippe C. Martin
Hi, Is it possible ? ex: return ['1','2'] If so which type should I use in VB ? dim res as ??? Set testObj = CreateObject("") res = testObj.AMethodThatReturnsAListOfStrings() Thanks, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: What is your favorite Python web framework?

2005-07-17 Thread Philippe C. Martin
http://cheetahtemplate.org/ Admin wrote: > On Sun, 17 Jul 2005 19:15:49 -0300, Sybren Stuvel > <[EMAIL PROTECTED]> wrote: > >> http://www.unrealtower.org/mycheetah > > "Error 404 while looking up your page AND when looking for a suitable 404 > page. Sorry! > No such file /var/www/www.unrealt

Re: pywin32 com server "cash" question

2005-07-12 Thread Philippe C. Martin
Sorry: "Cache", not "Cash" Philippe C. Martin wrote: > Hi, > > I just got the pywin32 "hello world" COM server to install and I did > manage to use it from VB 6.0. > > However, there are some glitches I do not comprehend: > > 1) at

pywin32 com server "cash" question

2005-07-12 Thread Philippe C. Martin
Hi, I just got the pywin32 "hello world" COM server to install and I did manage to use it from VB 6.0. However, there are some glitches I do not comprehend: 1) at one point I got a python runtime error telling me the "testcomserver" was not found - I got rid of that problem by deleteting the app

Re: Options to integrate Python modules into native windows applications

2005-07-08 Thread Philippe C. Martin
Thanks Michel et salutations. Your english is fine. A+ Philippe Do Re Mi chel La Si Do wrote: > Re Hi ! > > > I had only test (little) Python for .Net ; OK, it's run. It is possible to > make winform from Python. And I had try to use Python for .Net from my > COM-server, and from VBscript.

Re: Options to integrate Python modules into native windows applications

2005-07-08 Thread Philippe C. Martin
Hi, Thanks for your answers, has anyone also used .net for Python ? Regards, Philipe Philippe C. Martin wrote: > Hi, > > I am looking for the pros and cons as to how to integrate a Python module > into a Windows native application. > > So far I have looked at > >

RE: Thoughts on Guido's ITC audio interview

2005-07-07 Thread Philippe C. Martin
> For me, performance is the minor issue. Usability is the major issue. If > find Eclipse to be highly unusable, so I don't use it. I find it to be the best option out there -- http://mail.python.org/mailman/listinfo/python-list

Re: Options to integrate Python modules into native windows applications

2005-07-07 Thread Philippe C. Martin
Thanks Larry, I want to: 1) Modify my code as little as possible 2) Please/reassure the lambda VB or VC++ oriented company Regards, Philippe Larry Bates wrote: > Other methods (services, sockets, pipes, etc.) > can also work well, but it depends on what you > want to do and how you wish to

Options to integrate Python modules into native windows applications

2005-07-07 Thread Philippe C. Martin
Hi, I am looking for the pros and cons as to how to integrate a Python module into a Windows native application. So far I have looked at 1) coding the C wrapper myself 2) using Pyrex 3) go for pywin32 and COM Thanks, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: Lisp development with macros faster than Python development?..

2005-07-06 Thread Philippe C. Martin
Almost sounds like a racist comment - sorry if I misunderstood Antoon Pardon wrote: > Op 2005-07-06, Michele Simionato schreef <[EMAIL PROTECTED]>: >> Fuzzyman: >>> So Lisp is for really good programmers, and Python is for >>> mediocre programmers ? >> >> >> Python is *also* for mediocre p

Re: I am a Java Programmer

2005-07-06 Thread Philippe C. Martin
I see you got many good/funny answers already. Test Python for two WE and you'll be able to help yourself very well ... I've been through an equivalent process. Regards, Philippe [EMAIL PROTECTED] wrote: > I am a java programmer and I want to learn Python Please help me. -- http://mail.py

Re: adding a character to the last string element of a list

2005-07-06 Thread Philippe C. Martin
Thanks, Philippe Peter Hansen wrote: > Philippe C. Martin wrote: >> I guess my slicing was wrong, l[-1] worked > > Note that that's _not_ a slice, however, but a reference to the last > element in the list. > > You'd have to subclass list to be able to do

RE: adding a character to the last string element of a list

2005-07-05 Thread Philippe C. Martin
I guess my slicing was wrong, l[-1] worked Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: adding a character to the last string element of a list

2005-07-05 Thread Philippe C. Martin
Thanks, I though it was a reference (tough to implement I'm sure) Regards, Philippe Peter Hansen wrote: > Philippe C. Martin wrote: >> l = ['ABCDE','FGHI'] > > Okay so far... > >> l[1:] #returns ['FGHI'] > > Which is a _

  1   2   3   4   >