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

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

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

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

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

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,

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

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 wa

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

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

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

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

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

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 XPCOM

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

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

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 usi

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

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.

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

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

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 pro

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

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

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 subproje

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

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

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

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

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

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

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

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

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

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

Tkinter zoom box

2005-01-03 Thread Philippe C. Martin
: no zoom box 4) Mandrake 10.1/Gnome 2.6/Python 2.4: zoom box shows I know that sounds strange, but I am fairly certain this is what happened. Is there a way to _force_ that zoom box ? Regards, Philippe -- * Philippe C. Martin SnakeCard LLC www.snakecard.com

Tkinter zoom box = maximize/unmaximize box/button

2005-01-03 Thread Philippe C. Martin
By zoom box I meant one of the top right button/box one uses to maximize/unmaximize the current window. -- * Philippe C. Martin SnakeCard LLC www.snakecard.com * -- http://mail.python.org/mailman/listinfo/python-list

smtp question

2005-01-05 Thread Philippe C. Martin
ak if not line: break msg = msg + line print "Message length is " + repr(len(msg)) server = smtplib.SMTP('smtp.sbcglobal.yahoo.com') server.set_debuglevel(1) server.login ('x','yyy') server.sendmail(fromaddr, toaddrs, 'Subject:from python\n\n'+msg) s

smtp: one more question

2005-01-05 Thread Philippe C. Martin
>Email client = Evolution: the "From" field is blank >Email client = KMail: the "To" field is blank I also notice that emails sent to myself get trashed by my provider - could that be related ? -- *********** Philippe C. Martin Snake

Re: smtp question - using email module

2005-01-05 Thread Philippe C. Martin
Thank you all for your help - an yes! the email module is _very_ nice. Regards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: Developing Commercial Applications in Python

2005-01-07 Thread Philippe C. Martin
ce it on this list :-) Regards, Philippe -- ******* Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Tkinter: passing parameters to menu commands

2005-01-07 Thread Philippe C. Martin
event style object, is there some type of Tkinter call that would let my method know the menu id selected ? Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: passing parameters to menu commands

2005-01-07 Thread Philippe C. Martin
ng on ? #menu creation l_dec.add_command(label = 'ATR', command=self.__Dec('ATR')) l_dec.add_command(label = 'IN', command=self.__Dec('IN')) Regards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: passing parameters to menu commands (looping through a list)

2005-01-07 Thread Philippe C. Martin
list = ['ATR','IN'] for i in l_dec_list: l_dec.add_command(label = i, command= lambda: self.__Dec(i)) Any clue ? Regards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: passing parameters to menu commands (looping through a list)

2005-01-07 Thread Philippe C. Martin
>>l_dec.add_command(label=i, command=lambda x=i: self.__Dec(x)) Woof! I'd better do my homework on lambda ! Thanks, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: "A Fundamental Turn Toward Concurrency in Software"

2005-01-08 Thread Philippe C. Martin
ocus the performance of a system solely on its CPU's. Regards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

printing line numbers for debugging purpose

2005-01-08 Thread Philippe C. Martin
-- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

fetching method names from a class, and the parameter list from a method

2005-01-10 Thread Philippe C. Martin
Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: fetching method names from a class, and the parameter list from a methodRe: fetching method names from a class, and the parameter list from a method

2005-01-11 Thread Philippe C. Martin
>>> import inspect >>> help(inspect) Thanks, I have not seen the func params yet, but the default values are so Regards, Philippe -- ******* Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.or

Re: encryption/decryption help

2005-01-12 Thread Philippe C. Martin
Did you look at pycrypto ? http://www.amk.ca/python/code/crypto.html Regards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: encryption/decryption help

2005-01-12 Thread Philippe C. Martin
, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

how to find site-packages path

2005-01-17 Thread Philippe C. Martin
Hi, I am using my own install script for my software and am looking for a flawless way to figure out where python, and more specifically site-packages is installed. Any clue ? Regards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com

Re: how to find site-packages path (Michael Hoffman) - use distutils

2005-01-17 Thread Philippe C. Martin
is shoudl be easy enough) 2) copy already compiled (.pyc) and source (.py) files to those directories 3) create directories and copy files in a directory kept in an environment variable Can distutils do this for me ? Regards, Philippe -- *** Philippe C. Mar

Re: how to find site-packages path (Michael Hoffman) - use distutils

2005-01-18 Thread Philippe C. Martin
egards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Tkinter in thread hangs on windows but not on Linux

2005-01-18 Thread Philippe C. Martin
) l_st = ScrolledText(l_f) l_st.pack(side=TOP, expand=YES, fill=BOTH) l_st.insert(END,self.__m_msg) l_r.mainloop() . . . l_d = SC_DOCS('A MESSAGE', 'A TITLE') l_d.start() . . . -- *********** Philippe C. Martin SnakeCard LLC www.snakecard.com ***

Re: hex notation funtion

2005-01-18 Thread Philippe C. Martin
Would that do it? for i in my_byte_string: = atoi(binascii.hexlify(i),16) Regards, Philippe On Tue, 18 Jan 2005 20:43:44 +0200, tertius wrote: > Hi, > > Is there a builtin function that will enable me to display the hex > notation of a given binary string? (example below) > > man

Re: how to find site-packages path (Michael Hoffman) - use distutils

2005-01-18 Thread Philippe C. Martin
derstand how to change the sys.path. So until I have found a clean cross platform solution I'm going to have to stick to site-packages. Best regards, Philippe -- ******* Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mai

Re: Tkinter in thread hangs on windows but not on Linux

2005-01-18 Thread Philippe C. Martin
Well this is what is on the top of my script: from Tkinter import * import threading from ScrolledText import * I still hang under XP wish I had 2K to test. I almost sounds like tkinter does not get refresh events anymore. I'll keep at it On Tue, 18 Jan 2005 12:42:21 -0800, Kamilche

Re: Tkinter in thread hangs on windows but not on Linux

2005-01-18 Thread Philippe C. Martin
Actually, the following link: http://www.astro.washington.edu/owen/TkinterSummary.html seems to say my code is illegal - so I'm now just launching a modless window from the main thread - _seems_ to work On Tue, 18 Jan 2005 11:45:28 +0100, Philippe C. Martin wrote: > Hi, > > I

Re: how to find site-packages path (Michael Hoffman) - use distutils/modified

2005-01-19 Thread Philippe C. Martin
changes. Then you get a --remove-source options to >>most of the commands. You can also selectively override what gets >>removed if you want by changing the is_removable function >>I hope this is useful for what you're wanting to do >>David -- *

  1   2   3   4   >