Wrap Tk widget using a class

2008-01-10 Thread Kevin Walzer
ne suggest how I might better structure the class so that this works? I'm a bit of a newbie with OO, so any pointers are appreciated. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python GUI toolkit

2008-02-04 Thread Kevin Walzer
your experience, Tk/Tile is inherently unable to deliver native platform "feel," in a way that reflects on the toolkit rather than the developer. It's fine to focus on Windows if that's your area of expertise. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python GUI toolkit

2008-02-04 Thread Kevin Walzer
#x27;t hook into some of the newer Mac visual styles. Getting access to this would require an extension or patching Tk's core. In those events, I emulate the behavior or appeareance, which Tk makes very easy. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: RELEASED Python 2.5.2, release candidate 1

2008-02-14 Thread Kevin Walzer
on 2.5.2 release > candidate 1". > This is splitting hairs. The subject clearly said "release candidate 1." That means it's not the final candidate. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter = Rodney Dangerfield?

2008-02-18 Thread Kevin Walzer
ig mistake? No, you're not. Tkinter is a fine way to code up an application. I prefer it, even using Tkinter for commercial software. See http://www.codebykevin.com/phynchronicity.html for an example. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter OSX and "lift"

2008-02-21 Thread Kevin Walzer
ift() > root.mainloop() > > Any ideas how to tell the window to start as the topmost window? > > Thanks, > -- > Miki <[EMAIL PROTECTED]> > http://pythonwise.blogspot.com If you click on the PythonLauncher application that runs in your dock when this script is execu

Re: Tkinter OSX and "lift"

2008-02-21 Thread Kevin Walzer
Miki wrote: > Hello Kevin, > >> Tk.lift doesn't seem to work on OSX (Python 2.5.1). >>> If you click on the PythonLauncher application that runs in your dock >>> when this script is executed, the window comes into focus fine. > You're right, but I want

Re: Looking for up to date documentation for Python/Tkinter

2008-02-21 Thread Kevin Walzer
e new release, 8.5, is a huge update, adding platform-specific theming to better blend in. There's tons of Tcl-specific documentation about that. There has been less Tkinter-style documentation--this link might be of use: http://tkinter.unpythonic.net/wiki/TileWrapper -- Kevin Walzer

Re: [Python-Dev] [ANN] Python 2.3.7 and 2.4.5, release candidate 1

2008-03-02 Thread Kevin Teague
"It has to do with the MACOSX_DEPLOYMENT_TARGET. If it's set to 10.4, the legacy version of setpgrp is used (with args), it it's 10.5, setpgrp expects no arguments. It seems configure won't detect the difference." http://bugs.python.org/issue1358 This issue was fixed for Python 2.5. As the issu

Re: How to make a Tkinter widget always visible?

2008-03-11 Thread Kevin Walzer
real way to guarantee that the widgets will be visible at all times. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: How to make a Tkinter widget always visible?

2008-03-11 Thread Kevin Walzer
Miki wrote: > Hello Kevin, > >>> Is there a way to make sure that these buttons are always visible? >> There are various ways to do this: you can set the window to be >> non-resizable, or set a minimum size to it, so that it can't be resized >> below that

Re: Getting started with OS X Leopard

2008-03-15 Thread Kevin Walzer
t; would be better off with a "proper" build. Not sure where you heard that. Apple's Python is built according to Mac guidelines (as a "framework"), but it works the same as on other platforms. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and 3D

2008-03-16 Thread Kevin MacPhail
t > Cgkit might be what you're looking for: http://cgkit.sourceforge.net/ -Kevin -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling Mac programs from Python instead of from AppleScript

2008-03-19 Thread Kevin Walzer
; Maybe I need to load some libraries first. > > Please help me to get started. > > Thanks > Dewey V. Schorre > Take a look at appscript: http://appscript.sourceforge.net/ -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: State of the art: Tkinter, Tk 8.5, Tix?

2009-01-10 Thread Kevin Walzer
here: http://code.google.com/p/python-ttk/ It will be added to the standard library at some point, probably for Python 3.1. Here are some screenshots: http://code.google.com/p/python-ttk/wiki/Screenshots HTH, Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.pytho

Re: State of the art: Tkinter, Tk 8.5, Tix?

2009-01-10 Thread Kevin Walzer
ed to what the new stuff in Tk 8.5 provides? Is there much overlap? And here are some Tix screenshots: http://tixlibrary.sourceforge.net/screenshots/index.shtml -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Find all available Tkinter cursor names?

2009-01-22 Thread Kevin Walzer
r wrote: Anybody know how to find all the available Tkinter cursor icon names, or where the icons are stored? like "paintbrush" "pencil" etc... http://www.tcl.tk/man/tcl8.4/TkCmd/cursors.htm -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.

Re: Find all available Tkinter cursor names?

2009-01-23 Thread Kevin Walzer
r wrote: Thanks Kevin, These are exactly the ones i already knew about. I was hoping there where more, shucks!. I wonder how i could go about making my own cursors and adding them to Tkinter? Have any ideas? http://wiki.tcl.tk/8674 might offer some help in this regard. -- Kevin Walzer Code

Re: New to python, open source Mac OS X IDE?

2009-01-28 Thread Kevin Walzer
on environments? Thanks! I use IDLE + Terminal myself. IDLE has improved a lot on the Mac in recent years. Another good tool is Aquamacs, a Mac-optimized version of Emacs: http://aquamacs.org -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Creating a request for ZSI

2009-02-19 Thread Kevin Geraghty
get_rates_by_profile_name(req) Traceback (most recent call last): File "", line 1, in ? File "HotelWebService_services.py", line 487, in get_rates_by_profile_name raise TypeError, "%s incorrect request type" % (request.__class__) TypeError: incorrect request type

Python won't run

2009-02-20 Thread kevin hayes
Hi, I had python 2.5 installed on my Mac osx 10.4.11 and idle stopped opening and running after I ran a few programs. I installed python 2.6 hoping this would allow me to open idle and start learning to program. How do I get Idle running again? -- http://mail.python.org/mailman/listinfo/python-li

Re: Python won't run

2009-02-20 Thread kevin hayes
pened. On Fri, Feb 20, 2009 at 5:41 PM, Chris Rebert wrote: > Hmm. How did you install Python/IDLE? > Also, please use Reply-All as others on the list might have helpful ideas. > > - Chris > > On Fri, Feb 20, 2009 at 5:34 PM, kevin hayes wrote: > > I was clicking on the appli

Re: File paths printed in stack trace are where Python was built???

2008-11-28 Thread Kevin Kelley
Actually, if you to get an error from a module built with zipimport it points to where that module was built as well. Kevin On Fri, Nov 28, 2008 at 9:22 PM, Roy Smith <[EMAIL PROTECTED]> wrote: > We distribute Python internally by building it in one place, and then > distributing i

Re: noob needs help

2008-11-30 Thread Kevin Kelley
Try "python documents/helloworld.py" or "cd documents" before "python helloworld.py". Kevin On Sun, Nov 30, 2008 at 11:50 AM, toveysnake <[EMAIL PROTECTED]> wrote: > I decided that I want to learn python, and have no previous > programming experience. I

Re: Problems running on hp duo Pentium R processor

2008-12-05 Thread Kevin Kelley
64bit. Also, the "R" is for Registered Trademark (of Pentium), it's not part of the name/model (http://ark.intel.com/cpu.aspx?groupId=33925). Kevin On Fri, Dec 5, 2008 at 2:02 PM, jim-on-linux <[EMAIL PROTECTED]> wrote: > Python help, > > In September I wrote: >

Moving to subprocess from os.popen--pipe closes prematurely

2008-12-11 Thread Kevin Walzer
e: firstcat = rawcat self.packagelist = (firstcat, newline[1], newline[2], self.catname, newline[3].strip('\n')) I am using the fcntl call to set the pipe to nonblocking mode, and am trying to time.sleep to give the buffer time to get some data. How

Re: Python's popularity

2008-12-22 Thread Kevin Kelley
's used heavily for internal game scripting (Eve Online uses it very heavily (specifically Stackless), as does BF 2142). I don't know if in fact Python is the 3rd most popular language, but I would not be surprised by it passing up other high level scripting languages like Perl and Rub

Re: Python's popularity

2008-12-24 Thread Kevin Kelley
ges is on python-dev, and first drafts of PEPs are often posted here for initial review and rewriting before their more public appearance on python-announce.* I think you are confusing lists r. Kevin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3 and my Mac (Leopard)

2008-12-27 Thread Kevin Walzer
tinfo/pythonmac-sig It is a pretty good resource, better than the Python wiki, more up to date. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: tcl/tk version confusion with tkinter in Python 2.6, on OS X

2008-10-06 Thread kevin . walzer
y/Frameworks. I'm not sure why it doesn't. Should a bug report be filed against this? If the Mac build of Python 2.6 consistently looks in /System/Library/Frameworks for Tcl/Tk, it won't run Tkinter applications. It makes the build pretty much useless for anyone needing it to run Tkinter apps, including Idle. I'd say it's a showstopper issue. --Kevin -- http://mail.python.org/mailman/listinfo/python-list

Re: is there really no good gui builder

2008-11-09 Thread Kevin Walzer
k, if the product is PyQt) and use the open-source version. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Hooking windowsmessages with python

2008-11-20 Thread Kevin Osthoff
Hi! I'm trying to set a message hook with python to catch WM_DROPFILES. The guiframework is Tkinter. Here a code snippet: > hwnd = eval(self.wm_frame()) > win32gui.DragAcceptFiles(hwnd,1) > wnd = win32ui.CreateWindowFromHandle(hwnd) > wnd.HookMessage(self.test,w32con.WM_DROPFILES) > def test(

Re: Hooking windowsmessages with python

2008-11-20 Thread Kevin Osthof
Mike Driscoll schrieb: I recommend re-posting to the PyWin32 mailing list where the creators of this package lurk. They'll probably be able to give you some advice: http://mail.python.org/mailman/listinfo/python-win32 Ok. I will try this. Mike -- http://mail.python.org/mailman/listinfo/py

Re: Hooking windowsmessages with python

2008-11-20 Thread Kevin Osthof
Aaron Brady wrote: I've done some hooks in C. If no one has a simpler way, I can help you build a DLL to do it, and call it from Python. Thx for the offer but i will try to do it in python first. ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: Upgrade Python on a Mac

2009-03-02 Thread Kevin Walzer
not update the system version of Python installed on the Mac--that's maintained by Apple and should not be touched. Instead, the installer will put in a new version alongside the Apple version. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mai

dblck py file run, setuptools, easy_install don't work

2009-03-26 Thread Kevin Ar18
I just installed Python 3 64bit on Vista 64bit. I am having several issues: 1. I cannot launch python by typing "python" anywhere in the command line. (I added the Python directory to my PATH variable by the way). 2. Double clicking .py files does not run the files like it used to wi

Re: how to use "heapq" module as a max-heap?

2009-03-29 Thread Kevin Lee
I suppose you could wrap your value type in a class and reimplement the builtin __cmp__ method to make it behave reversely or if it's a builtin numeric value type you could even push the negative into the heap in the first place? 2009/3/29 Apollo > > as we all known, in the standard module 'heapq

Re: Adding a Badge to an Icon in Mac OS X

2009-04-10 Thread Kevin Walzer
. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Minimal binary diff & version control in Python?

2009-04-25 Thread Kevin Ar18
This is a two part question: 1. Is there a minimal binary diff comparison library for Python (like difflib, but able to create a minimal diff)? 2. Has anyone ever tried to implement some form of version control in Python (if so, where)? I was just wonder about creating something small to ha

Re: Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Kevin Walzer
Edward Grefenstette wrote: I thought of this. I uninstalled Tk from macports, but the same error crops up. Evidently, Tk 8.5 remains installed somewhere else, but I don't know where. How can I find out? Best, Edward Look in /Library/Frameworks... Kevin Walzer Code by Kevin

Re: Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Kevin Walzer
Edward Grefenstette wrote: Whereas Tk 8.5 is installed in: === /Library/Frameworks/Tk.framework/Versions/8.5/ === Delete this one if you want to ensure that Python sees 8.4. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

IDLE doesn't save preferences

2009-05-20 Thread Kevin Walzer
rameworks/Python64.framework/Versions/2.6/lib/python2.6/lib-tk/Tkinter.py", line 1722, in __getattr__ return getattr(self.tk, attr) AttributeError: instance_dict IDLE just hangs and won't save/update my preferences. Any ideas? -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE doesn't save preferences

2009-05-20 Thread Kevin Walzer
Kevin Walzer wrote: I'm using IDLE on Mac OS X 10.5.7 (Python 2.6.2) and I'm getting a strange error when I try to save preferences from the configuration dialog: Exception in Tkinter callback Traceback (most recent call last): File "/Library/Frameworks/Python64.framework/V

Re: RFID and Python

2009-05-31 Thread Kevin MacPhail
On Sun, May 31, 2009 at 3:55 PM, Ronn Ross wrote: > I'm looking to play around with RFID and Python. Can anyone offer any > suggestions on the cheap? I'm possibly looking for a starter kit. > The Phidgets RFID starter kit sounds like it might meet your needs. There's a

Re: where to get McMillan Installer?

2008-05-13 Thread Kevin Walzer
gsal wrote: There does not seem to be a valid url for the Installer, anywhere. Could anyone provide me with a copy of it? many thanks. http://pyinstaller.python-hosting.com/ -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: finding icons for Apps

2008-05-25 Thread Kevin Walzer
e. The more important one is the former, because I can't even afford to pay for originals right now. But maybe I will soon, so it would be nice to have a resource. Thanks in advance, Joshua http://tango.freedesktop.org/Tango_Desktop_Project http://www.oxygen-icons.org/ http://ev

Re: Getting up and running with Python on a Mac

2008-05-29 Thread Kevin Walzer
x27;s the way to go. If you want a later version of Python, you can download one from python.org, but I am not sure how that integrates wtih Xcode. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: system tray for Tk

2008-07-08 Thread Kevin Walzer
Tcl/Tk packages, but they can probably be called easily enough from Python. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: paypal wholesale men jordans 17 (paypal accept)(www super-saler com

2008-07-11 Thread Kevin McMurtrie
In article <[EMAIL PROTECTED]>, Ben Finney <[EMAIL PROTECTED]> wrote: > WDC <[EMAIL PROTECTED]> writes: > > > On Jul 10, 10:33 pm, 128 <[EMAIL PROTECTED]> wrote: > > […] > > > > > Is that spam i spy? > > It is, clearly. Please don't make the problem worse by repeating the > entire thing. I

Re: spam <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>

2008-07-13 Thread Kevin McMurtrie
In article <[EMAIL PROTECTED]>, Lew <[EMAIL PROTECTED]> wrote: > WDC wrote: > > BTW I reported it, yo should too. > > To whom did you report it, so that we may also report it there? Google does not accept spam complaints. Go ahead, try it. That's why they've been the #1 Usenet spamming tool

Re: like py2exe, but on a mac

2008-07-28 Thread Kevin Walzer
the small "Console" window that pops up behind my Tkinter app. That's not something that py2app can solve. Add this call to your Python script somewhere (modify as needed): try: self.tk.call('console', 'hide') except TclError:

Re: like py2exe, but on a mac

2008-08-01 Thread Kevin Walzer
ually tried "it" (py2app), since I realized that I already had bundlebuilder, but I'm assuming it's the same in this respect. Bundlebuilder is pretty much obsolete--py2app is much better, cleaner. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.py

Re: PIL (etc etc etc) on OS X

2008-08-01 Thread Kevin Walzer
erstandable, but this is your chance to learn something new. Thanks for any advice or comments. DU. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL (etc etc etc) on OS X

2008-08-02 Thread Kevin Walzer
iently invalid DOS exe could cause physical damage to a hard drive... that wasn't the only thing I learned that day. /usr/local is a good place to install stuff in a way that won't disrupt your system. OS X/Darwin puts its system stuff in /usr/bin, /usr/lib, and so on. --Kevin -- K

Re: PIL (etc etc etc) on OS X

2008-08-04 Thread Kevin Walzer
e" directories under a common parent, # you can use the "libinclude" helper: # # TIFF_ROOT = libinclude("/opt/tiff") FREETYPE_ROOT = None JPEG_ROOT = None #JPEG_ROOT = "/usr/local/bin" How about "/usr/local/lib" ? It's looking for a dylib (l

Re: Python packages on the Mac

2008-08-05 Thread Kevin Walzer
e, and try this command: gzcat Archive.pax.gz | pax -r "man pax" can tell you more about the pax command, pkg bundles, and the like. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

os.system question

2008-08-06 Thread Kevin Walzer
>>> import os >>> foo = os.system('whoami') kevin >>> print foo 0 >>> The standard output of the system command 'whoami' is my login name. Yet the value of the 'foo' object is '0,' not 'kevin.' How can

Re: os.system question

2008-08-07 Thread Kevin Walzer
SamG wrote: Why dont you try commands module instead Thank you! That was just what I needed. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter fullscreen with Mac OS X

2008-08-07 Thread Kevin Walzer
elp, or document Any thoughts? Can you do something similar on the tk instance itself? Try something like this (assuming self.tk._w is the name of your window): self.tk._w.wm_attributes(fullscreen='true') -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: os.system question

2008-08-13 Thread Kevin Walzer
I develop on a Unix-like system (Darwin/MacOS), so others understand where I'm coming from. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

About __init__ and default arguments

2008-04-11 Thread Kevin Takacs
nky. Any ideas how this could be done along the lines of my proposed but faulty code? Thanks, Kevin -- http://mail.python.org/mailman/listinfo/python-list

File IO Issues, help :(

2008-04-28 Thread Kevin K
Hey everyone, I'm new to python and am trying to do a little project with it. I'm running into problems writing over a file. I read from the file and loop through for a specfic case in which I change something. After I open and give it opening options (w, r, etc) one of two things happens: either t

Re: File IO Issues, help :(

2008-04-28 Thread Kevin K
On Apr 29, 12:38 am, "Eric Wertman" <[EMAIL PROTECTED]> wrote: > chuck in a jsfile.close(). The buffer isn't flushing with what you > are doing now. jsfile.flush() might work... not sure. Closing and > re-opening the file for sure will help though. > Yeah sorry I forgot to include the close() i

Re: File IO Issues, help :(

2008-04-28 Thread Kevin K
On Apr 29, 12:55 am, Peter Otten <[EMAIL PROTECTED]> wrote: > Kevin K wrote: > > On Apr 29, 12:38 am, "Eric Wertman" <[EMAIL PROTECTED]> wrote: > >> chuck in a jsfile.close(). The buffer isn't flushing with what you > >> are doing now. jsfil

Re: File IO Issues, help :(

2008-04-29 Thread Kevin K
On Apr 29, 1:07 am, Kevin K <[EMAIL PROTECTED]> wrote: > On Apr 29, 12:55 am, Peter Otten <[EMAIL PROTECTED]> wrote: > > > > > Kevin K wrote: > > > On Apr 29, 12:38 am, "Eric Wertman" <[EMAIL PROTECTED]> wrote: > > >> chuck in a

Re: People still using Tkinter?

2008-05-10 Thread Kevin Walzer
my screenshot) it's possible to do sophisticated user interfaces with it. It fits my brain much better than wxPython, for instance. And the long effort by Tk's developers to modernize its appearance has finally paid off, I think. Hope that helps, Kevin -- Kevin Walzer Cod

Re: People still using Tkinter?

2008-05-10 Thread Kevin Walzer
'm not sure I have time to overhaul it extensively. I'll follow your progress with interest! --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: People still using Tkinter?

2008-05-10 Thread Kevin Walzer
Guilherme Polo wrote: Thanks ;) And, yes Kevin, I'm planning to submit it for inclusion into Tkinter's core. Excellent. I hope your effort is successful. Thanks for support it, and sorry for saying yours was incomplete. I wasn't trying to sell my version by doing that, was

Hide Console

2008-08-24 Thread Kevin McKinley
t rid or hide this console once i've turned it into a executable windows program? Thanks you Kevin McKinley -- http://mail.python.org/mailman/listinfo/python-list

Adding Icons to my Programs

2008-08-26 Thread Kevin McKinley
I've been turn my script into executible programs with Py2exe. Is there a way to change the icon for the main exe file? Thank you, Kevin McKinley -- http://mail.python.org/mailman/listinfo/python-list

Memory Leak?

2008-08-26 Thread Kevin McKinley
So i've complete my first program with a GUI interface. I've noticed that everytime i click a tab or button the amount of memory the program takes up goes up by 50-200 kb. The program will start off at 4.5mb and by the time i'm done it can get up over 10 or 15 mb. The program will start runn

Re: Memory Leak

2008-08-27 Thread Kevin McKinley
Kevin McKinley napisał(a): >> that everytime i click a tab or button the amount of memory the program >> takes up goes up by 50-200 kb. The program will start off at 4.5mb and >> by the time i'm done it can get up over 10 or 15 mb. Th

Memory Leek, critique me. Thanks!!!

2008-08-29 Thread Kevin McKinley
he program. # Thank you, # Kevin McKinley from Tkinter import * class MyApp: def __tini__(self, parent): self.myParent = parent self.myFunctionContainer = Frame(parent) self.myFunctionContainer.grid(row=0, column=0) self.COG1 = DoubleVar()

Memory Leek, critique me. Thanks!!!

2008-08-29 Thread Kevin McKinley
s isn't my excuse to sloppy code, its just my explanation of why i've done the coding the way i have. I hope to keep getting better. Thanks, Kevin -- http://mail.python.org/mailman/listinfo/python-list

Help with Tkinter Label Widget

2008-09-03 Thread Kevin McKinley
Below i've put the code for a program that i wrote. I need help on lines 384-403. If you run this program you will notice on the first tab when have it produce an answer the $ is surrounded with {$}. How can i get rid of that? from Tkinter import * class MyApp: def __init__(self, paren

Re: How to record audio from Python on Mac?

2008-09-09 Thread Kevin Walzer
ld be much appreciated. Thanks, Skip You can probably access this functionality via PyObjC--it provides access to the Cocoa frameworks. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE doesn't run on OSX 10.3.9

2008-09-30 Thread Kevin Walzer
same 2.5.2 download from the Python.org website on OSX 10.4.11 and all went fine...but shouldn't it install on 10.3.9 as well? Anyone have any ideas? Thanks. -Tom Do you have Tcl/Tk installed? It doesn't come on 10.3.9 by default. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- ht

Re: IDLE doesn't run on OSX 10.3.9

2008-10-01 Thread Kevin Walzer
[EMAIL PROTECTED] wrote: Just did a new install of Tcl/tk from activestate.com and IDLE still not working... -Tom Did you install Tcl/Tk 8.5? It won't work with the build of Python from python.org (it looks for 8.4). -- Kevin Walzer Code by Kevin http://www.codebykevin.com --

Re: Tkinter / Mac OS X Question (Aqua vs. X11)

2006-03-13 Thread Kevin Walzer
rsion. (The "wish8.4-x11" command is just a wrapper script that invokes a completely different wish binary, linked against an entirely different set of libraries.) The advice to install Python and Tcl/Tk via Fink (or DarwinPorts) then run your script against that is the right advi

Basic python help

2006-03-13 Thread Kevin Feng
Title: Basic python help I have the following simple html file that is trying to send data to a python script, however, I am getting a weird server error: This is my HTML: Ticker 1 This is my Python: #!/usr/bin/python import cgi print "Content-type: text/html" print form = cgi.Fi

Re: Basic python help

2006-03-13 Thread Kevin Feng
No idea, I do not have permission to access the error log. On 3/14/06 2:12 AM, in article [EMAIL PROTECTED], "Gregor Horvath" <[EMAIL PROTECTED]> wrote: > Kevin Feng schrieb: > >> More information about this error may be available in the server error log. &g

Re: Python installation problem

2006-03-17 Thread Kevin Walzer
f in the OS that depends on Python. -- Kevin Walzer iReveal: File Search Tool http://www.wordtech-software.com -- http://mail.python.org/mailman/listinfo/python-list

POP3 Mail Download

2006-03-18 Thread Kevin F
Having some troubles downloading messages with POP3... I can connect to the server just fine and list messages without any problem with the following code: from poplib import * server = POP3("mail.bluebottle.com") print server.getwelcome() print server.user("[EMAIL PROT

Re: POP3 Mail Download

2006-03-18 Thread Kevin F
Dennis Lee Bieber wrote: > On Sat, 18 Mar 2006 16:44:44 -0500, Kevin F <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > >> However, if I try to actually download the messages themselves, my >> python editor highlights 'msgSize' and

Re: Getting .NET SDK to work with Python 2.4.2

2006-03-18 Thread Kevin F
Dave wrote: > I searched the usenet and some mail archives and tried various > techniques, but I can't seem to get the .NET 2.0 SDK to work with > python. I'm a total newbie when it comes to python installs. I > downloaded the .NET 2.0 SDK and I have python 2.4.2 and im trying to > install zope. So

Re: Getting .NET SDK to work with Python 2.4.2

2006-03-18 Thread Kevin F
;)[1] if(msgSize < 2): message = server.retr(msgNum)[1] message = join(message, "\n") emails.append(message) Kevin F wrote: > Dave wrote: >> I searched the usenet and some mail archives and tried various >> techniques, but I can't seem to get the .NE

Re: POP3 Mail Download

2006-03-18 Thread Kevin F
Dennis Lee Bieber wrote: > On Sat, 18 Mar 2006 17:24:05 -0500, Kevin F <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > >> I fixed the indentation to: >> >> emails = [] >> for msg in messagesInfo: >> msgNum = int(split(msg

Re: POP3 Mail Download

2006-03-18 Thread Kevin F
Paul McGuire wrote: > "Kevin F" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Dennis Lee Bieber wrote: >>> On Sat, 18 Mar 2006 16:44:44 -0500, Kevin F <[EMAIL PROTECTED]> >>> declaimed the following in comp.lang.python: >

pop3 mail download - using python.org example

2006-03-18 Thread Kevin F
i'm trying to this this code to access my pop server but it only prompts for a password and not a username, how do i get it to ask for my username as well? ##from http://docs.python.org/lib/pop3-example.html import getpass, poplib M = poplib.POP3('localhost') M.user(getpass.getuser()) M.pass_

IMAP Folder Size Information

2006-03-19 Thread Kevin F
I'm trying to use the following code to get my remote server's folder size information. Unfortunately, i'm getting the error: Traceback (most recent call last): File "/Life/School/Homework/Spring 2006/OPIM 399/Tutorial/IMAP/mailboxsize.py", line 23, in -toplevel- number_of_messages_al

IMAP Checking Folder Size

2006-03-20 Thread Kevin F
I'm trying to use the following code to get my remote server's folder size information. Unfortunately, i'm getting the error: Traceback (most recent call last): File "/Life/School/Homework/Spring 2006/OPIM 399/Tutorial/IMAP/mailboxsize.py", line 23, in -toplevel- number_of_messages_al

parsing downloaded mail via POP3

2006-03-22 Thread Kevin F
d, 22 Mar 2006 00:43:39 -0500', 'Received: from [165.123.150.168] ([165.123.150.168]) by webmail1.wharton.upenn.edu over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830);', '\t Wed, 22 Mar 2006 00:43:39 -0500', 'User-Agent: Microsoft-Entourage/11.0.0.0404

newbie question

2006-03-22 Thread Kevin F
what does it mean when there are [0] or [1] after a variable? e.g. print 'Message %s\n%s\n' % (num, data[0][1]) -- http://mail.python.org/mailman/listinfo/python-list

searching imap mail folder but excluding one subfolder

2006-03-22 Thread Kevin F
I have code that searches under the default folder (inbox) but I would like to modify it to search for everything in that folder with the exception of one subfolder where I would like it not to search. my current code is: from imaplib import * import getpass server = IMAP4("webmail.x.

where is os.path.expanduser?

2006-03-23 Thread Kevin F
where is this code looking for the .imap file? I am on OSX and am not sure where to put the file it is looking for. f = open(os.path.expanduser('~/.imap')) -- http://mail.python.org/mailman/listinfo/python-list

os.path.expanduser ... where is this?

2006-03-23 Thread Kevin F
I have a code that opens an .imap file in os.path.expanduser. Unfortunately, I am on OS X and have no idea where that directory is. I am wondering how I can change this code to just open the .imap file in the directory where the code is saved. f = open(os.path.expanduser('~/.imap')) p.s.

Re: where is os.path.expanduser?

2006-03-23 Thread Kevin F
Peter Otten wrote: > Kevin F wrote: > >> where is this code looking for the .imap file? I am on OSX and am not >> sure where to put the file it is looking for. >> >> f = open(os.path.expanduser('~/.imap')) > > Your interactiv

IMAP mailwatcher w/Tkinter

2006-03-23 Thread Kevin F
I've been trying to implement this script, it polls an IMAP inbox for unread messages and displays the sender and subject in a scrollable window using Tkinter. However, when I try to change the search parameters on line 55 from 'unread' (UNSEEN) to 'read' (SEEN), the tkinter window doesn't eve

IMAP Tkinter Issue

2006-03-23 Thread Kevin F
Sorry to repost... but 4am didn't get much responses. I've been trying to implement this script, it polls an IMAP inbox for unread messages and displays the sender and subject in a scrollable window using Tkinter. However, when I try to change the search parameters on line 55 from 'unread' (UN

[wxPython-users] Re: ANNOUNCE: wxPython 2.6.3.2

2006-04-04 Thread Kevin Walzer
y by a frame and that is > already shown. > > wxMSW: Fixed wx.Choice/wx.ComboBox so they send events when a new item > is selected only with the keyboard. > > > Is the new build of wxPython-Mac a universal binary? -- Kevin Walzer iReveal: File Search Tool http://www.wordtech-

<    1   2   3   4   5   6   7   8   >