Fwd: Problem installing pygame

2019-12-14 Thread Eric Gonzalez
Get Outlook for Android<https://aka.ms/ghei36> From: Eric Gonzalez Sent: Thursday, December 12, 2019 9:35:40 PM To: python-list@python.org Subject: Problem installing pygame Hello, with the above mentioned i am having some serious problems wi

Re: [Scons-dev] SCons 3.1.2 Released

2019-12-21 Thread Eric Fahlgren
On Mon, Dec 16, 2019 at 7:02 PM Bill Deegan wrote: > - EXPERIMENTAL NEW FEATURE: Enable caching MSVC configuration > If SCONS_CACHE_MSVC_CONFIG shell environment variable is set, > SCons will cache the results of past calls to vcvarsall.bat to > a file; integrates with exist

Re: Build spoofed IP packets

2005-10-05 Thread Eric Nieuwland
27;Interrupted system call') > > Note: this only happens on Windows XP prof SP2. On Linux I got no > problems. > I run the program as Administrator. It's SP2. Microsoft decided allowing raw socket access is a security threat and disabled it in SP2. --eric -- http://mail.python.org/mailman/listinfo/python-list

Re: [Info] PEP 308 accepted - new conditional expressions

2005-10-07 Thread Eric Nieuwland
Robin Becker wrote: > As mentioned earlier only a dictator can make such decisions and of > course as > with many dictatorships the wrong decision is often made. There's no > such thing > as a benevolent dictatorship. Ever cared to check what committees can do to a

Re: Lambda evaluation

2005-10-07 Thread Eric Nieuwland
and produces the inner lambda with the fixed x value --eric -- http://mail.python.org/mailman/listinfo/python-list

Re: [Info] PEP 308 accepted - new conditional expressions

2005-10-10 Thread Eric Nieuwland
fter I first saw it in K&R. It only > very rarely holds any advantage over a simple if/else statement, > especially in modern compilers. It's most useful in macros, which > python doesn't even have. same time span and I used it zillions of times ==eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter or Python issue?

2005-10-19 Thread Eric Brunel
On Tue, 18 Oct 2005 22:30:33 -0400, Ron Provost <[EMAIL PROTECTED]> wrote: > Hello, > > I'm using python 2.4.2 on Win XP Pro. I'm trying to understand a behavior > I'm seeing in some Tkinter code I have. I've reduced my question to a small > piece of code: > > > #BEGIN CODE > ###

Re: Set an environment variable

2005-10-20 Thread Eric Brunel
On 20 Oct 2005 01:58:44 -0700, the_crazy88 <[EMAIL PROTECTED]> wrote: > Just use > os.system("export PYTHONPATH = %s" %("your_pythonpath")) ... except it won't work: os.system will execute the command in a new process, so the environment variable change will only be visible in *this* process. S

Re: Set an environment variable

2005-10-24 Thread Eric Brunel
On Fri, 21 Oct 2005 20:13:32 -, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2005-10-21, Mike Meyer <[EMAIL PROTECTED]> wrote: >> Grant Edwards <[EMAIL PROTECTED]> writes: >>> My point: the OP wanted to know how to export an environment >>> variable to a child process. Either of the lines of

Re: Class Variable Access and Assignment

2005-11-03 Thread Eric Nieuwland
nce_b.var = 1000 # -> _class.var = 5 > _class.var = # -> _class.var = > > > > An obvious error occurs. Nope. 'var' is NOT a class variable! It is a pre-filled instance variable. You need some explicit programming to get class variables. --eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Class Variable Access and Assignment

2005-11-03 Thread Eric Nieuwland
ss is created, what effectively happens is that a shallow copy of the class object is made. Simple values and object references are copied. This explains: - why methods and complex objects (e.g. lists) are shared among instances of a class and the class itself - simple values are not share

Re: Getting Python Accepted in my Organisation

2005-11-03 Thread Eric Nieuwland
Stuart Turner wrote: > "Python is a scripting language like Perl, awk, tcl, Java etc...  it > is > not quite a fully developed OO language, but does support some OO that > Perl > doesn't.  To be clear, these scripting languages have their place in > our > environment, but they are not full repl

Re: Class Variable Access and Assignment

2005-11-03 Thread Eric Nieuwland
Steven D'Aprano wrote: > On Thu, 03 Nov 2005 15:13:52 +0100, Eric Nieuwland wrote: >> 2 When an instance of the class is created, what effectively happens >> is >> that a shallow copy of the class object is made. >> Simple values and object references are copi

Re: strip not working on strings?

2005-11-13 Thread Eric Jacoboni
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > I'm using Python 2.3.5 and when I type the following in the interactive > prompt I see that strip() is not working as advertised: > > >>>s = 'p p:p' > >>>s.strip(' :') > 'p p:p' > > Is this just me or does it not work? I want to get rid

Re: strip not working on strings?

2005-11-13 Thread Eric Jacoboni
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > I'm using Python 2.3.5 and when I type the following in the interactive > prompt I see that strip() is not working as advertised: > > >>>s = 'p p:p' > >>>s.strip(' :') > 'p p:p' > > Is this just me or does it not work? I want to get rid

Re: strip not working on strings?

2005-11-13 Thread Eric Jacoboni
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > I'm using Python 2.3.5 and when I type the following in the interactive > prompt I see that strip() is not working as advertised: > > >>>s = 'p p:p' > >>>s.strip(' :') > 'p p:p' > > Is this just me or does it not work? I want to get rid

Re: How to write an API for a Python application?

2005-11-16 Thread Eric Brunel
On 16 Nov 2005 06:18:05 -0800, Paul Boddie <[EMAIL PROTECTED]> wrote: > Gary Kshepitzki wrote: >> I would like to create an API for a piece of Python code. The API is for use >> by non Python code. >> It should support interaction in both directions, both accessing functions >> on the API and the

Re: How to write an API for a Python application?

2005-11-17 Thread Eric Brunel
On Wed, 16 Nov 2005 15:43:33 -0500, Mike Meyer <[EMAIL PROTECTED]> wrote: > "Eric Brunel" <[EMAIL PROTECTED]> writes: >> On 16 Nov 2005 06:18:05 -0800, Paul Boddie <[EMAIL PROTECTED]> wrote: >>> One technology that I used many years ago with Python,

Re: about sort and dictionary

2005-11-20 Thread Eric Jacoboni
emind you that they operate by side effect, they don't return the sorted or reversed list. -- Eric Jacoboni, ne il y a 1435934131 secondes -- http://mail.python.org/mailman/listinfo/python-list

Re: Underscores in Python numbers

2005-11-20 Thread Eric Jacoboni
ithout enforcing any grouping. The Ruby language allows also this notation. You may write 1_000_001 or 1000_001 or 10_00_001, etc. (the same for real numbers...). When you have the habit to represent literals like that, all other big numeric literals or workarounds to create grouping seem cryptic.

Re: Underscores in Python numbers

2005-11-21 Thread Eric Jacoboni
[EMAIL PROTECTED] (Bengt Richter) writes: >>Eric Jacoboni, ne il y a 1435938104 secondes > Um, about your sig ... ;-) Well, i confess it's Ruby code... Maybe, one day, i will try to write a Python Version (with DateTime, i guess?) but i'm afraid it doesn't change the r

New Position at Naples Daily News using Django/Python

2005-11-28 Thread eric . moritz
One of the most respected and award-winning newspaper Web teams in the world has moved to Florida and is looking for an experienced server-side Web developer. NDN Productions -- the online and new media publishing division of the Naples Daily News -- is looking for a full-time Python programmer to

Re: lies about OOP

2005-01-01 Thread Eric Pederson
evil of "top down > programming" was on the land. But by '86, the Joy of OOP was widely > known. > Flowers bloomed and birds chirped. Pant legs narrowed. You had to go there. You had to put down my brother, the bell bottom. Next thing one knows you'll be maligning

Re: The Industry choice

2005-01-02 Thread Eric Pederson
the use of (for example) Python would seem very in tune with those goals. It might be nice if it was widely understood (in IT) that Python was a language any competent programmer could pick up in an afternoon, such that Java, C, and Perl shops would not be concerned about the need for their staff

Re: cosmetic Tkinter question

2005-01-03 Thread Eric Brunel
hy do you use frames? If you have only check-buttons in them, you do not need them: from Tkinter import * root = Tk() for i in range(0, 101, 20): b = Checkbutton(root, text='Option %s' % i) b.pack(side=TOP, anchor=W) root.mainloop() HTH -- - Eric Brunel - PragmaDev : Real Time Sof

Re: Tkinter zoom box

2005-01-03 Thread Eric Brunel
ot;regular" Tkinter widgets, so it must be built with some other one... Which one is it? A button, a menubutton, or what else? If you had some (simple) code showing the problem, that would also help a lot to understand what's going on... -- - Eric Brunel - PragmaDev : Real Time Sof

Re: Tkinter zoom box = maximize/unmaximize box/button

2005-01-03 Thread Eric Brunel
. HTH -- - Eric Brunel - PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com -- http://mail.python.org/mailman/listinfo/python-list

Re: The Industry choice

2005-01-04 Thread Eric Pederson
gain shared advantage as part of a massive object, or (1) choose an alternate "location" far enough away not to be much affected by the force of the massive objects, and try to build "mass" there. I suspect Python is a (1) in that regard, but I may be wrong. Gravity as

Re: Tkinter Puzzler

2005-01-07 Thread Eric Brunel
o the last command in the loop. To do what you want, change your code to: for entry in (...): UI.ShortBtn.menu.add_command( label=entry[0], command=lambda func=entry[1]: func(None) ) This way, the value for the func parameter is evaluated when the function is defined and not when

Re: OT: MoinMoin and Mediawiki?

2005-01-10 Thread Eric Pederson
ou're going to migrate between the two, won't Python come in handy! ;-) Eric Pederson http://www.songzilla.blogspot.com ::: domainNot="@something.com" domainIs=domainNot.replace("s","z") ePrefix="".join([chr(ord(

Re: PyChecker messages

2005-01-11 Thread Eric Brunel
Silencer(signal, dummy): ... the warning will not be triggered. BTW, if your signal handler is just here to catch Ctrl-C, you'd better do a try/except on KeyboardInterrupt... HTH -- - Eric Brunel - PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com -- http://mail.python.org/mailman/listinfo/python-list

File objects? - under the hood question

2005-01-18 Thread Eric Pederson
ests of the OS... My brain-teaser: What I'd like to do is read the last ~2K of a large number of large files on arbitrary servers across the net, without having to read each file from the beginning (which would be slow and resource inefficient)... Eric Pederson http://www.songzi

Re: File objects? - under the hood question

2005-01-20 Thread Eric Pederson
;)[:-128]) >>> song453.tags=IDV2.read() >>> len(song453.tags) 128 But it's not a Python problem. :-( Thanks for the responses and indulgence. I'm OK now - the repair man fixed the coffee pot. Eric Pederson http://www.songzilla.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: [perl-python] 20050126 find replace strings in file

2005-01-26 Thread Eric Schwartz
fh } $_; } close($infh) or die "Error closing input file [$infile]: $!"; close($outfh) or die "Error closing output file [$outfile]: $!"; My version takes up more lines, but I don't count whitespace-- whitespace is not expensive, and when used properly adds greatly

Re: what's OOP's jargons and complexities?

2005-01-28 Thread Eric Sosman
Xah Lee wrote: [...] Tomorrow i shall cover more manmade jargons and complexities arising out of the OOP hype, in particular Java. [...] I hope you will not, or that if you do so you will do it elsewhere. Go pound sand. -- Eric Sosman [EMAIL PROTECTED] -- http://mail.python.org/mailman

Re: The next Xah-lee post contest

2005-01-30 Thread Eric Pederson
press wild flowers. He puts on women's clothing And hangs around In bars??? Well. At least I feel better. For now. /Eric - sentenced to re-learn and write an application in Perl 5.0 What will that do to my mind? http://www.songzilla.blogspot.com :

Re: variable declaration

2005-02-01 Thread Eric Pederson
om. """ http://groups-beta.google.com/group/comp.lang.python/messages/178fef06830cc779?thread_id=a75da70b0845b6fe&mode=thread&noheader=1#doc_178fef06830cc779 [Go PyPy!] Eric Pederson http://www.songzilla.blogspot.com ::: domainNot="

Python 2.1 / 2.3: xreadlines not working with codecs.open

2005-06-23 Thread Eric Brunel
Hi all, I just found a problem in the xreadlines method/module when used with codecs.open: the codec specified in the open does not seem to be taken into account by xreadlines which also returns byte-strings instead of unicode strings. For example, if a file foo.txt contains some text encoded

Re: Frame widget (title and geometry)

2005-06-24 Thread Eric Brunel
On Fri, 24 Jun 2005 10:21:01 -0400, Shankar Iyer ([EMAIL PROTECTED]) <[EMAIL PROTECTED]> wrote: > Hi, > > I am still new to Python and Tkinter, so I apologize in advance if I do not > word my question optimally. I am trying to use a frame widget as the parent > for other widgets. There is a cla

Re: tkinter radiobutton

2005-06-26 Thread Eric Brunel
On Sat, 25 Jun 2005 19:34:50 GMT, William Gill <[EMAIL PROTECTED]> wrote: > I am placing radiobuttons in a 4 X 4 matrix (using loops) and keep > references to them in a 2 dimensional list ( rBtns[r][c] ). It works > fine, and I can even make it so only one button per column can be > selected, by

Re: Python 2.1 / 2.3: xreadlines not working with codecs.open

2005-06-28 Thread Eric Brunel
On Thu, 23 Jun 2005 14:23:34 +0200, Eric Brunel <[EMAIL PROTECTED]> wrote: > Hi all, > > I just found a problem in the xreadlines method/module when used with > codecs.open: the codec specified in the open does not seem to be taken into > account by xreadlines which also

Re: custom Tkinter ListBox selectMode

2005-07-03 Thread Eric Brunel
On Fri, 1 Jul 2005 20:19:20 -0400, Ron Provost <[EMAIL PROTECTED]> wrote: > Hello, > > I've written a simple GUI which contains a listbox to hold some information. > I've found that the click-selection schemes provided by Tkinter are > insufficient for my needs. Essentiall I need to impletement a

Re: Tkinter Checkbutton initialization problem

2005-07-04 Thread Eric Brunel
On 03 Jul 2005 02:32:21 -0700, Paul Rubin wrote: > Python 2.4, Windows XP. If I say: > > f = Frame() > f.grid() > v = IntVar() > c = Checkbutton(f, text='hi there', variable=v) > c.grid() > f.mainloop() > > then the checkbutton should initially d

Re: Tkinter grid layout

2005-07-06 Thread Eric Brunel
On Wed, 06 Jul 2005 11:44:55 +0100, Richard Lewis <[EMAIL PROTECTED]> wrote: > Hi there, > > I've got a tree control in Tkinter (using the ESRF Tree module) but I > can't get it to layout how I want it. > > I'd like to have it so that it streches north/south (anchored to the top > and bottom), is

Re: Tkinter grid layout

2005-07-07 Thread Eric Brunel
On Wed, 06 Jul 2005 16:32:42 GMT, William Gill <[EMAIL PROTECTED]> wrote: > Excuse me for intruding, but I followed examples and ended up with a > similar architecture: > > from Tkinter import * > class MyMain(Frame): > def __init__(self, master): > self.root = mast

Re: win32ui CreatePrintDialog

2005-07-18 Thread Eric Brunel
On Fri, 15 Jul 2005 18:08:35 -0400, Chris Lambacher <[EMAIL PROTECTED]> wrote: > Hi, > > This question has come up a few times on the list with no one giving a public > answer. How do you use CreatePrintDialog from win32ui? > > About a year ago someone posted that: > dlg = win32ui.CreatePrintDial

Re: main window in tkinter app

2005-07-18 Thread Eric Brunel
On Mon, 18 Jul 2005 16:57:51 GMT, William Gill <[EMAIL PROTECTED]> wrote: > A short while ago someone posted that(unlike the examples) you should > use Tk as the base for your main window in tkinter apps, not Frame. Thus : > >class MyMain(Frame): >def __init__(self, master): >

Re: is this pythonic?

2005-07-23 Thread Eric Pederson
"Caleb Hattingh" <[EMAIL PROTECTED]> wrote: >In another > newsgroup, I could have been flamed for letting Simon know he helped > more > than just the OP with his post :) +1 OP asks, thousands are educated (perhaps). The group's generosity is greatly appreciated, even if that appreciation

Re: Clearing a Text Widget

2005-07-25 Thread Eric Brunel
On Fri, 22 Jul 2005 23:42:52 -0400, Kane Bonnette <[EMAIL PROTECTED]> wrote: > Kane Bonnette wrote: >> Does anyone know how the clear the text from a Tkinter Text Widget? The >> delete(0, END) trick that works for Entry widgets doesn't work for Text >> >> I get "0 is an invalid index" when i try t

Python -- (just) a successful experiment?

2005-08-07 Thread Eric Pederson
Raise your hand if you think the best technology wins! For those of you with your hands in the air, tell me: if Python is so good, why has PHP achieved such greater adoption and mindshare? Why do web scripters still cling to their Perl, even in corporate environments? Why hasn't Python made

Re: FTP over SSL (explicit encryption)

2005-08-10 Thread Eric Nieuwland
s. AFAIK you're not. I'm having a look at FTP/S right now. That's a little more complicated, but it seems doable. If I succeed, I guess I'll donate the stuff as an extension to ftplib. --eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Wireless Extension Module (pyiw)

2005-08-13 Thread Eric Nieuwland
can() > > for net in nets: > print net.signal_quality > > wlan.essid > wlan.key > wlan.protocol > > wlan.essid = "LV-426" > > wlan.Reconfigure() So cool! YES, I'd like to have that. Preferably as source code since I have quite a number of different Un*xes. --eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and games

2005-08-14 Thread Eric Lavigne
>Like XML, scripting was extremely useful as both a mod tool and an >internal development tool. If you don't have any need to expose code >and algorithms in a simple and safe way to others, you can argue that >providing a scripting language is not worth the effort. However, if you >do have that n

Re: Problem (or even bug?) with Tkinter

2005-08-19 Thread Eric Brunel
On Fri, 19 Aug 2005 09:53:20 +0100, Matt Hammond <[EMAIL PROTECTED]> wrote: > Here's a strange one in Tkinter that has me stumped: > (I'm running python 2.4 on Suse Linux 9.3 64bit) > > I'm trying to make a set of Entry widgets with Label widgets to the left > of each one, using the grid layout. I

last line chopped from input file

2005-08-20 Thread Eric Lavigne
Here is a shell command (MS-DOS): debug\curve-fit output.txt And here is a Python script that *should* do the same thing (and almost does): import os inputfilename = 'input.txt' outputfilename = 'output.txt' inputfile = open(inputfilename,'r') outputfile = open(outputfilename,'w')

subpackage import problem

2005-08-21 Thread Eric Huss
sses together, I create a subpackage with a separate file for each class. - I import these files in the subpackage __init__.py so I don't have to change any other code and so I don't have foo.bar.flashlight.flashlight() lines where the word "flashlight" is repeated. -Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: last line chopped from input file

2005-08-21 Thread Eric Lavigne
>A shorter python program would be: > > os.command("debug\\curve-fit output.txt") I tried this program: import os os.command("debug\\curve-fit output.txt") My error message is: AttributeError: 'module' object has no attribute 'command' I also could not find os.command in the help files.

Re: last line chopped from input file

2005-08-21 Thread Eric Lavigne
> > import os > > os.command("debug\\curve-fit output.txt") > > > > I imagine thats was a typo for: > > >>> os.system("debug\\curve-fit output.txt") > > Alan That fixes it. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: a question about tkinter StringVars()

2005-08-24 Thread Eric Brunel
On Wed, 24 Aug 2005 15:07:27 GMT, William Gill <[EMAIL PROTECTED]> wrote: > Working with tkinter, I have a createWidgets() method in a class. > Within createWidgets() I create several StringVars() and > assign them to the textvariable option of several widgets. > Effectively my code structure is:

Re: tkraise oddity

2005-08-24 Thread Eric Brunel
On 24 Aug 2005 06:57:07 -0700, twd <[EMAIL PROTECTED]> wrote: > I'm seeing some new and unexpected behaviour with tkinter + python2.4, > in a gnome+linux environment. The code below used to work (and > continues to work under windows). The intended behaviour is that a > window is created the the f

Re: subpackage import problem

2005-08-24 Thread Eric Huss
On Sun, 21 Aug 2005, Robert Kern wrote: > Eric Huss wrote: > > I'm having a problem with packages within packages. Here's an example: > > > > foo/ > > foo/__init__.py: empty file > > foo/sub/__init__.py: > > from foo.sub.B import B > &

Re: file access dialog

2005-08-26 Thread Eric Brunel
On Fri, 26 Aug 2005 07:52:06 GMT, Wouter van Ooijen (www.voti.nl) <[EMAIL PROTECTED]> wrote: > I have a tool in Python to which I want to add a small GUI. The tools > currently runs everywhere PySerial is supported. I need a file-access > dialog. What is the preffered way to to this? Is there a >

Re: named pipe input

2005-09-01 Thread Eric Nieuwland
max(01)* wrote: > $ cat file_input_3.py > #!/usr/bin/python > > import sys > > MIAPIPE = open("una_pipe", "r") > > for riga in MIAPIPE: >print riga, > ... > [...] > BUT if i try to do the same with the python code, something different > happens: i have to type ALL the lines on console #2 and co

Re: execute commands independantly

2005-09-06 Thread Eric McGraw
If you want it to return when the program is finished then use os.system('app') but if you just want to start it and return right away, use os.startfile('app') -- http://mail.python.org/mailman/listinfo/python-list

Re: TKinter, Entry objects and dynamic naming

2005-09-13 Thread Eric Brunel
On 13 Sep 2005 08:51:47 +0100, Ian Vincent <[EMAIL PROTECTED]> wrote: > I am hoping someone may be able to help. > > I am using Python and TKinter to create a GUI program that will > eventually create an XML file for a project I am working on. Now, the XML > file contents changes depending on the

Re: Tkinter add_cascade option_add

2005-09-13 Thread Eric Brunel
On Tue, 13 Sep 2005 22:31:31 -0600, Bob Greschke <[EMAIL PROTECTED]> wrote: > Root.option_add("*?*font", "Helvetica 12 bold") > > Want to get rid of the "font =": > Widget.add_cascade(label = "File", menu = Fi, font = "Helvetica 12 bold") > > Does anyone know what ? should be to control th

Re: Interface with C

2005-09-14 Thread Eric Lavigne
> When this button is hit, it will send a code of 0 to the C > program. > > ./mcp | python gui.py Your pipe is backwards. Try this: python gui.py | ./mcp When your gui.py notices that a button got hit, it can just print the number 0 (followed by a newline character) to standard output. This beco

Re: Tkinter add_cascade option_add

2005-09-15 Thread Eric Brunel
On Wed, 14 Sep 2005 09:58:25 -0600, Bob Greschke <[EMAIL PROTECTED]> wrote: > "Eric Brunel" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> On Tue, 13 Sep 2005 22:31:31 -0600, Bob Greschke <[EMAIL PROTECTED]> wrote: >> >>

Re: variable declaration

2005-02-08 Thread Eric Pederson
what's one more compromise to get popular?! (I shudder thinking where that slippery slope leads) [Nothing above is meant to imply I haven't done stupid things; rather perhaps that I've already done more than enough to know better; and, by the way, I'm still not "popular&

Re: tkinter menu bar problem

2005-02-09 Thread Eric Brunel
ms with a check-mark, use the add_checkbutton or add_radiobutton methods on the parent menu. Their use is similar to the Checkbutton and Radiobutton classes. See [1] for all available options. [1] http://www.tcl.tk/man/tcl8.4/TkCmd/menu.htm - Eric Brunel - -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter menu bar problem

2005-02-09 Thread Eric Brunel
ms with a check-mark, use the add_checkbutton or add_radiobutton methods on the parent menu. Their use is similar to the Checkbutton and Radiobutton classes. See [1] for all available options. [1] http://www.tcl.tk/man/tcl8.4/TkCmd/menu.htm - Eric Brunel - -- http://mail.python.org/mailman/listinfo/python-list

PyQt documentation

2005-02-10 Thread Eric Jardim
for making PyQt development more easy? thanks, [Eric Jardim] -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQt documentation

2005-02-11 Thread Eric Jardim
gets. Thats the reason I want to know if there is a "Qtdoc-like" PyQt doc. If it does not exists, let's make it :) Wanna join? [Eric Jardim] -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQt documentation

2005-02-11 Thread Eric Jardim
way, I found 9 "I"s on your last message. Don't be that selfish :) The proposal is up. [Eric Jardim] -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQt documentation

2005-02-11 Thread Eric Jardim
that would be an option for you? Yes, maybe. I'll take look. thanks again, [Eric Jardim] -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter option_add for menu radiobutton

2005-02-14 Thread Eric Brunel
black...the x.add_radiobutton() ones. Root.option_add("*Menu.Radiobutton*selectColor", "black")...nope Root.option_add("*Menu*selectColor", "black")...no change Strange... The last one works for me (as it should - see http://www.tcl.tk/man/tcl8.4/TkCmd/menu.htm

Re: Pmw.Balloon under Windows

2005-02-17 Thread Eric Brunel
since there is no "real" window manager, but from the tk/Tkinter point of view, the result is the same: you can't "fake" a window manager event using event_generate. BTW, what are the versions of Python, tk and Pmw you're using? HTH a little... - Eric Brunel - -- http://mail.python.org/mailman/listinfo/python-list

Re: Hello File.py

2005-02-18 Thread Eric Brunel
t. Feel free to note any horrors you see. Just one little thing: if you declare: def MenuOpen(parent): ... you'd better call it via: MenuOpen(root) and not: MenuOpen(parent=root) The 'parent=' stuff is unnecessary and may be confusing, since this syntax is often used only when you declare a function with keyword parameters like: def f(arg, **kwdParams): ... HTH - Eric Brunel - -- http://mail.python.org/mailman/listinfo/python-list

3d graphics

2005-02-18 Thread Eric Hanson
ython for games programming and the likes? Thanks, Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: exercise: partition a list by equivalence

2005-02-20 Thread Eric Pederson
> From: "Xah Lee" <[EMAIL PROTECTED]> > > The GOTO statement from Perl has been messed up. hey, I didn't do it! > > This block: > Âfor group in interm: what do the funny little "Â"s stand for?

Re: Mixing Txinter and Pygame

2005-02-22 Thread Eric Brunel
p://www.tcl.tk/man/tcl8.4/TkCmd/contents.htm It unfortunately requires to know how to convert the tcl/tk syntax to Python/Tkinter syntax, but it is actually quite easy (mainly read "option=value" when the tcl/tk documentation says "-option value") HTH - Eric Brunel - -- http://mail.python.org/mailman/listinfo/python-list

Re: 'modal dialogs' with Tkinter

2005-02-22 Thread Eric Brunel
l" or whatever buttons you want to use should then call dlg.destroy(). This will terminate the wait_window call and continue the execution of the code after it. HTH - Eric Brunel - -- http://mail.python.org/mailman/listinfo/python-list

Re: Mixing Txinter and Pygame

2005-02-23 Thread Eric Brunel
scripts in the Demo/tkinter sub-directory of the Python source installation. It mainly covers the basics, but may be quite helpful when you start. HTH - eric - -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQt and Python 2.4 - also WinXP LnF?

2005-02-23 Thread Eric Jardim
Simon John - Feb 10, 11:51 am: > I've just read the Qt4 GPL for Windows will only support gcc (and maybe > MinGW) anyway, not BCC or VisualC++ (or it's free equivalents), so it > looks like it would be a daunting task to actually build PyQt Why? I think that it is fair. Why a Free Software dev

Re: PyQt and Python 2.4 - also WinXP LnF?

2005-02-23 Thread Eric Jardim
Simon John - Feb 13, 4:24 pm: > After building with MSVC6 (Python 2.3.5 and 2.4 versions) I've noticed > that the ToolTips don't seem to work in the GPL version. Free (GPL) Qt3 port to Windows is not complete. They indeed need help to conclude their job. And as Trolltech is not going to release

Re: Fonts

2005-02-28 Thread Eric Brunel
On Fri, 25 Feb 2005 11:00:41 -0600, phil <[EMAIL PROTECTED]> wrote: I'm cpmpletely lost on fonts. I'm using Tkinter I do medarial = '-*-Arial-Bold-*-*--24-*-*-*-ISO8859-1" or Courier or Fixed in various sizes. Works great on my RH 7.2 But a small embedded system Im working on, nothing seems to work

Re: Polling selections from a listbox (Tkinter)

2005-02-28 Thread Eric Brunel
On 26 Feb 2005 03:48:16 -0800, Harlin Seritt <[EMAIL PROTECTED]> wrote: [snip] Obviously when this starts up this is going to show selection #0 inside the label box. How do I make sure that whatever is arbitrarily selected ends up in the label box as this gui runs? I tried doing a bind: self.listbo

Re: scrollbar dependencies

2005-03-03 Thread Eric Brunel
On 3 Mar 2005 01:06:48 -0800, Marion <[EMAIL PROTECTED]> wrote: Hello. I am using Tkinter and Pmw. I would like to build 2 canvases/frames that are scrollable together horizontally, and independently vertically (so, the vertical scrollbars should not be moved by the horizontal one). So I built a Pm

Re: scrollbar dependencies

2005-03-03 Thread Eric Brunel
On 3 Mar 2005 02:38:59 -0800, Harlin Seritt <[EMAIL PROTECTED]> wrote: Pardon a question I should already know the answer to, but what are the *args in the: def xscrollboth(*args): c1.xview(*args) c2.xview(*args) Thanks, Harlin If your question is about the syntax, it's just the way of passin

Re: Setting default option values for Tkinter widgets

2005-03-03 Thread Eric Brunel
On 3 Mar 2005 03:02:48 -0800, Harlin Seritt <[EMAIL PROTECTED]> wrote: There are certain options for Tkinter widgets that have default values that I don't much care for (borderwidth, font come to mind) and continuously change when I'm building interfaces. With a bit of tweaking I have been able to

Re: Impersonating other broswers...

2005-03-05 Thread Eric Pederson
la/5.0 (Songzilla MP3 Blog, http://songzilla.blogspot.com) Gecko/20041107 Firefox/1.0" And you'll get to decide whether to shut them out or not, but at least it won't seem like the black hats are attacking. Eric Pederson http://www.songzilla.blogspot.com :::

Best way to make a list unique?

2005-03-08 Thread Eric Pederson
I have >>> listA=[1,2,3,4,5,4,3,4,3,2,1] and I want a list of only the unique members. This seems inefficient, but works fine over my small sample lists: >>> listA=[a for a in set(listA)] Is there a more efficient approach for cases where listA is large?

Usage example for ANSI.py from the pexpect package

2005-03-09 Thread Eric Myers
Hello folks: (This message is also posted on the help forum at the pexpect sourceforge page, but all indentation in the code got stripped away when I submitted the post.) For some time I've wanted to make use of the ANSI.py module in the pexpect package to handle screen-based telnet sessions in P

Re: Tkinter Bitmap Newbie question

2005-03-15 Thread Eric Brunel
On Tue, 15 Mar 2005 00:00:57 GMT, Neil Hodgson <[EMAIL PROTECTED]> wrote: Wim Goffin: But just to make sure I'm on the right track, - Is XBM the best way to for bitmaps? The ones I saw so far are all black and white. Do they also exist in color? XPM is the version of XBM with colour. - Is XBM al

Re: (Tkinter) Adding delay to PopUpMsg

2005-03-18 Thread Eric Brunel
On 17 Mar 2005 23:40:20 -0800, Harlin Seritt <[EMAIL PROTECTED]> wrote: I am working on making something called a PopMsg widget which is actually identical to a Balloon widget from Pmw. Here is the code: ---code--- from Tkinter import * import time class PopMsg: def showmsg(self, event):

Re: Problem with tkinter mainloop

2004-11-30 Thread Eric Brunel
ating the problem you have instead of just extracting a few lines of your whole code. This will help people who are willing to help to understand exactly what is going on. HTH -- - Eric Brunel - PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.4 and Tkinter

2004-12-02 Thread Eric Brunel
ded to Python 2.4, I assume you had a working installation of a previous Python version. So the tcl/tk libraries and header files must be there somewhere. Did you look at your Modules/Setup for the older Python? If Tkinter was working with this version, the setup for the _tkinter module should

Re: Python 2.4 and Tkinter

2004-12-03 Thread Eric Brunel
phase, but then you have to put it in $LD_LIBRARY_PATH to be able to import the module. HTH -- - Eric Brunel - PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie alert !

2004-12-03 Thread Eric Brunel
and as named parameters in the following ones? IMHO, since the parameters are positional in the function definition, you'd better pass them as such in the calls, i.e: rings(41, 0, -22, 'black') (Et sinon, il existe un newsgroup Python francophone (fr.comp.lang.python) sur le

Re: How did you learn Python?

2004-12-03 Thread Eric Pederson
me of the materials on the Python.org site, by Guido et. al. Introductions: http://python.org/doc/Intros.html Topic specific: http://python.org/topics/ FAQs: http://python.org/doc/faq/general.html Have fun! Eric Pederson ::: domainNot="@something.com" doma

<    1   2   3   4   5   6   7   8   9   10   >