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::MacWindowStyle,

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. --

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 PROTECTED] wrote:

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:

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 type and the appropriate module is used

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 --

Re: shelve seg error

2005-12-06 Thread Philippe C. Martin
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 assume this has to do with the db behind shelve. How do I go about tracing

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 ... which one is it ? http

os.chdir + GUI question

2005-12-03 Thread Philippe C. Martin
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

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

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 coded in Python, wxPython, and C

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

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. --

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

2005-11-28 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

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;

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

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

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 device event. (U3 only work

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 (www.u3.com) and I

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

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

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 subprojects should be two directories above

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 wrote: Hi, I'm currently blocking

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 1.0.3 ? That should work; alternatively, you can change

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

SnakeCard on sourceforge

2005-11-20 Thread Philippe C. Martin
, Philippe -- * Philippe C. Martin SnakeCard, LLC www.snakecard.com * -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html

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,

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

SnakeCard GPL products

2005-11-14 Thread Philippe C. Martin
-- * Philippe C. Martin SnakeCard, LLC www.snakecard.com * -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html

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

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: 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 produt line source code

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: 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 in.

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

Re: user account logon from python

2005-11-08 Thread Philippe C. Martin
() 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 assume it is because I cannot get 1 and/or 2 to work. Can you direct me

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 URL: http://docs.python.org/lib/module-pwd.html . I must be blind but still do not see it - do you mean getpwnam ? 2- crypt will

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: 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.

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 source out there that could help me

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

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

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) Tkinter is what comes ou of the box - and thats

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: 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 using system(), exec() or the likes

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: Have there been any attempt to do so

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 there a

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

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

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 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01

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 import cgi import logging import auth #this is the one

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 = Content-Type: text/html\n html ... Avoid the starting newline (before

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 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4

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

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 want the transaction

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

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,

Re: how to modify text in html form from python

2005-10-21 Thread Philippe C. Martin
. 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 do that ? My point is for the client to be able

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 modify existing data: 1) the server pops up a form

Re: how to modify text in html form from python

2005-10-21 Thread Philippe C. Martin
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] writes: PS: If my question is not clear, I am trying

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. That's what you expect it to be, right? Yes, the cgi script

Re: how to modify text in html form from python

2005-10-21 Thread Philippe C. Martin
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 -) a client opens his/her browser and click on some button which triggers my plugin -) the plugin starts

Re: how to modify text in html form from python

2005-10-21 Thread Philippe C. Martin
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 following (on the server there is an html file and a cgi file) If I

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 to an existing form field from a cgi script might not work: how would

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 owned by

Re: how to modify text in html form from python

2005-10-21 Thread Philippe C. Martin
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, which gives you a chance to do the authentication when you want

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

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: 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
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, but there is not a sample with pyplot. Robert

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

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 282, I assume this package is a potential contender

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

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: 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 menu)

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-list

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

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 setup an .msi for my software (Python

SCF 1.2b1 released

2005-07-22 Thread Philippe C. Martin
I am very please to announce the release of SCF 1.2b1 a Smart Card development system designed in Python: Two major features are being introduced: 1) Support for BasicCard DES/3/DES/AES secure messaging (Beta release 1) . 2) COM Support: access the power of SCF from Visual Basic or your

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

2005-07-21 Thread Philippe C. Martin
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 can now pass and return quite a few types except object instances: my python code gets to the point where I do: def

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 bunch, I'll

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: 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 ??? Set testObj = CreateObject() res = testObj.AMethodThatReturnsAListOfStrings() Thanks

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

2005-07-20 Thread Philippe C. Martin
' 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 ? dim res as ??? Set testObj = CreateObject() res

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

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

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 one point I got a python runtime error telling me the testcomserver

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 1) coding the C wrapper myself

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: 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

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: 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 something with reference-slices. Probably

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. --

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 programmers. I

Re: How to display Values of a file

2005-07-05 Thread Philippe C. Martin
I think you'll have to go through extensions: http://starship.python.net/crew/mhammond/ Regards, Philippe Kakushi wrote: Hi my name is Andrew beginning/intermediate Python User. I am using a win xp computer Python 2.4 I would like to write a python application that would allow me to

  1   2   3   >