Re: merits of Lisp vs Python

2006-12-08 Thread samantha
What are you? A pointy haired boss? - s Bjoern Schliessmann wrote: > Alex Mizrahi wrote: > > > hell no, lisp's syntax is much easier than python's since it's > > homogenous > > Can you give an example? I cannot imagine how homogenity always > results in easiness. > > > (and certainly lisp was inv

Re: Writing to Registry

2006-11-17 Thread Samantha
That was the fix. S "Mark Elston" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Note: this is untested (since I don't like screwing around > in the registry...) > > Have you tried using REG_DWORD? > > Mark >> -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing to Registry

2006-11-16 Thread Samantha
Thanks for the link. S "Gabriel Genellina" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > At Thursday 16/11/2006 20:48, Samantha wrote: > >>I am working with this recipes: >>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66011 >> &g

Writing to Registry

2006-11-16 Thread Samantha
I am working with this recipes: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66011 The problem I am having is setting a hex value. This line --- SetValueEx(aKey,"MyNewKey",0, REG_SZ, r"c:\winnt\explorer.exe") I want something Like -- SetValueEx(aKey,"MyNewSize",0, REG_SZ, 120 or s

Re: Help with display placement

2006-04-04 Thread Samantha
Thanks, think I have it now. S <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ok so I'm not to bright sometimes > > Well if you want this kinda control I suggest you go ahead and subclass > toplevel, but the simple answer before running > > root.mainloop() > > > make a call to > > r

Re: Help with display placement

2006-04-04 Thread Samantha
I want to be able to control where the dialog is displayed . X,Y location from the upper left corner of the screen. S <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > This code come up, fairly centered in my screen. What do you mean by > move? > -- http://mail.python.org/mailma

Help with display placement

2006-04-04 Thread Samantha
I am new to Python and am attempting to write a routine that will display a five game selection for a power ball drawing. I think I have the random drawing set to work ok, but I want to have the dialog box move in the center of my screen. I can't seem to get the code correct to do this. Any help

Re: Cursor Position.

2005-11-09 Thread Samantha
ve any advise as to how I can do what I am trying or is it, in a practical matter, impossible. S "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Samantha wrote: >> I will be using Tkinter. All I need is a way to get the X,Y position from

Re: Cursor Position.

2005-11-08 Thread Samantha
edrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Samantha" <[EMAIL PROTECTED]> wrote: > >> Looking at the goto(xy) thread. >> Is there a way to get the X,Y position from a cursor click and then use >> the >> pos

Cursor Position.

2005-11-08 Thread Samantha
Looking at the goto(xy) thread. Is there a way to get the X,Y position from a cursor click and then use the position to apply something like a water mark on an image at that position? Thanks, -- http://mail.python.org/mailman/listinfo/python-list

Cursor Location

2005-10-20 Thread Samantha
Is there any code that would allow a person to click a location on the screen and have that location saved for a future use? For example to imbed a watermark on an image or text, etc. S -- http://mail.python.org/mailman/listinfo/python-list

Re: very simple tkinter demo program

2005-04-10 Thread Samantha
Thanks that worked. S "max(01)*" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Samantha wrote: >> I can not get it to run. >> S > > sorry about that. baybe it is a conflict between tabstop width in my > editor and in my newsreader. >

Re: very simple tkinter demo program

2005-04-09 Thread Samantha
I can not get it to run. S "max(01)*" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hello. > > i wrote a very simple tkinter demo program that uses menus, buttons, > labels, entries, frames and secondary toplevels. > > it is a python version of a java program made by a colleague.

Re: Output File

2005-02-24 Thread Samantha
Thanks Steve. Appreciate it! S "Steven Bethard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Samantha wrote: >> input = open(r'C:\Documents and >> Settings\Owner\Desktop\somefile.html','r') >> L = input.readline

Output File

2005-02-24 Thread Samantha
Is there a limit on the size of the file Python will read then output. I am reading a file of 433 lines and when I output the same file it only will output 421 lines. The last line is cut off also. This is the code I am using as a test. input = open(r'C:\Documents and Settings\Owner\Desktop\som

Re: Probably over my head... Trying to get Font Names

2005-02-19 Thread Samantha
Mike I did get the last msg. Still trying to get things under control. S "Mike C. Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Samantha wrote: > >>Mike, >>Not sure why that email bounced. >> > That last one bou

Re: Probably over my head... Trying to get Font Names

2005-02-18 Thread Samantha
Thank you Pierre, that worked. I am still going to try and get the TTFQuery+Fonttools to work just out of curiosity. Thanks again to everyone!!! S "Pierre Quentel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Samantha" <[EMAIL PROTECTED]&g

Re: Probably over my head... Trying to get Font Names

2005-02-18 Thread Samantha
Mike, Strange Hotmail. I'll start over with the installs and you are correct on it being Numpy. I got the wrong file. I'll give it a go and let you know. Thanks S "Mike C. Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Samantha wrote: &

Re: Trying to get Font Names

2005-02-18 Thread Samantha
Thanks Fredrik, The Tkinter method didn't give any results but using PIL did. I'll have to play with it a little. Thanks again, S "Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Samantha" <[EMAIL PROTECTED]> wrote: &g

Re: Probably over my head... Trying to get Font Names

2005-02-18 Thread Samantha
[EMAIL PROTECTED] > [Samantha: your email has been bouncing, might want to clear your inbox] > > Samantha wrote: > >>Thanks Mike. I must have not installed the ttfquery and font tools >>correctly. I get an error. This error: >> > ... > >>ImportError: No module na

Re: Probably over my head... Trying to get Font Names

2005-02-17 Thread Samantha
ttools and storing > their metadata in an index for faster access, whereas your GUI library > will be using a simple API call to retrieve the metadata. That means > TTFQuery is going to be heavier, but it can, for instance, also give you > information about fonts not installed on t

Probably over my head... Trying to get Font Names

2005-02-17 Thread Samantha
I am attempting to extract the Font Names from the installed windows fonts. I am having a heck of a time getting these rather than the file names. Examples can be seen by going to Control Panel > Fonts Any help or direction is appreciated. S -- http://mail.python.org/mailman/listinfo/python-

Re: Print to Windows default Printer

2005-01-20 Thread Samantha
Thanks for the URL. I finally am able to print the temp file. Not exactly what I wanted, but it will work. The code I used to print was this: os.system ("start /min notepad /P temp.txt") Thanks ALL! S "Kristian Zoerhoff" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thu,

Re: Print to Windows default Printer

2005-01-20 Thread Samantha
Thanks Scott, Not wasting any paper yet. I can't seem to get the file to print at all yet. S "Scott David Daniels" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Tim Golden wrote: >> [Samantha] >> | I am new to Python and I am having consid

Re: Print to Windows default Printer

2005-01-20 Thread Samantha
The printer is on LPT1, but I sure can't get the temp file to print for some reason. I am using Windows XP SP2. S "Tim Golden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [Samantha] > > [... snip my explanation of PRINT / COPY LPTx: ...] > &g

Re: Print to Windows default Printer

2005-01-20 Thread Samantha
Thanks Tim, That is exactly what I want to do. How do I map the printer to LPT1? S "Tim Golden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [Samantha] > | Thanks Tim. I didn't realize it would be so difficult. > | S > > Strictly, if all

Re: Print to Windows default Printer

2005-01-19 Thread Samantha
Thanks Tim. I didn't realize it would be so difficult. S "Tim Golden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Print to Windows default Printer

2005-01-18 Thread Samantha
t key, ': ', Info[key] print -- Is there an easy way to do it. Right now I copy and paste to a txt file then print the file? S "Peter Hansen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Samantha wrote: >> I am new to Python and I am

Print to Windows default Printer

2005-01-18 Thread Samantha
I am new to Python and I am having considerable trouble trying to print (using a simple script) to the default printer rather than the screen. Thanks for any help. S -- http://mail.python.org/mailman/listinfo/python-list