Re: Tkinter or wxpython?

2007-08-06 Thread Kevin Walzer
erable advantages when you can do it that way. Given a choice between a rich desktop client and a web app, I'd choose the desktop client in most cases. It's just much more pleasant to work with . -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter or wxpython?

2007-08-06 Thread Kevin Walzer
learn wxPython because I can get what I need from Tkinter, even the more complicated GUI layouts. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: wxWindows - incorrect path on installation?

2007-08-06 Thread Kevin Walzer
n of wxPython did you install? I don't think any of them are configured to work with Apple's system-installed Python--you would need to install Python 2.5 from the Python.org website. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter or wxpython?

2007-08-08 Thread Kevin Walzer
, for instance, will look ugly. It's quite possible to make an attractive Tkinter application using modern, stylish icons that even blends in reasonably well on a specific platform (I've done it). -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter or wxpython?

2007-08-08 Thread Kevin Walzer
Chris Mellon wrote: > On 8/8/07, Kevin Walzer <[EMAIL PROTECTED]> wrote: > Using Tile, of course, loses you the first major benefit of Tk - that > it's already included in the standard library. So in this sense it's > still "ugly old school look and feel" vs

Re: Tkinter or wxpython?

2007-08-08 Thread Kevin Walzer
; in that case it's not as acceptable. > > Don't think I'm singling out Tk, Gtk has exactly the same problem - > you can make the buttons look native, but it doesn't adjust the > behavior. Tk does a better job with platform-specific defaults and be

Move files/directories to Recycle Bin using standard Python libs

2007-08-15 Thread Kevin D.Smith
work with. Is there a way to use the Recycle Bin using standard Python? -- Kevin D. Smith -- http://mail.python.org/mailman/listinfo/python-list

Re: Move files/directories to Recycle Bin using standard Python libs

2007-08-15 Thread Kevin D.Smith
ileop > structs to ctypes you can call the shell API file operation functions > in shell32.dll. This assumes that "standard" for you is Python 2.5, > which has ctypes. Otherwise you are out of luck. Unfortunately, I need this to work on Python 2.4 as well... -- Kevin D. Smith

Re: Hot subject: a good python editor and/or IDE?

2007-08-19 Thread Kevin Walzer
tiny precision, I am on Ubuntu so I am looking > for a linux compatible editor. > > Cheers, > > Sébastien IDLE -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and Tkinter Programming--Expensive!

2007-08-19 Thread Kevin Walzer
current, and has helped me learn Tkinter programming (and I already have a background with Tk via Tcl). -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: GUI and distrubution

2007-08-24 Thread Kevin Walzer
;s the best Python IDE?"). Search the list archives via Google, or do a general Google search. Some helpful terms to get you started include pyinstaller, py2exe, py2app, Tkinter, wxPython, PyQt, and pyGTK. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Unable to read large files from zip

2007-08-28 Thread Kevin Ar18
I posted this on the forum, but nobody seems to know the solution: http://python-forum.org/py/viewtopic.php?t=5230 I have a zip file that is several GB in size, and one of the files inside of it is several GB in size. When it comes time to read the 5+GB file from inside the zip file, it fails

Re: Python shell on mac os x

2007-03-17 Thread Kevin Walzer
s available. What is the consensus on that? > If you just want binary packages installed, it might make sense to use 2.4.4, but building new packages with 2.5 is easy: either use easy_install or sudo python setup.py. I've had no trouble building the stuff I need with 2.5. --

PythonCard or Dabo?

2007-03-19 Thread Kevin Walzer
e try both? What's your preference and why? Is one more robust than the other? -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Associate image name with list item

2007-03-26 Thread Kevin Walzer
lled self.item. What I'm trying to do is get the value of the variable "item" and plug it into the image name, so that self.item actually corresponds to self.installed, self.base, etc. Trying something like self.categorytable.cellconfigure("end,0", image=self.%s % item) just yields a syntax error: SyntaxError: invalid syntax Can anyone point me in the right direction? -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Use threads or Tkinter event loop?

2007-03-27 Thread Kevin Walzer
#x27;Empty' error message when I first start the thread). Simply using the Tk event loop (self.update) is also how I would have coded this in Tcl. So my question is this: under what circumstances in Python are threads considered "best practice"? Am I wrong to use the Tk event loop

Re: Use threads or Tkinter event loop?

2007-03-27 Thread Kevin Walzer
Kevin Walzer wrote: > I'm trying to decide whether I need threads in my Tkinter application or > not. My app is a front end to a command-line tool; it feeds commands to > the command-line program, then reads its output and displays it in a > Tkinter text widget. Some of the

Tkinter menu question--how to pass arguments

2007-03-30 Thread Kevin Walzer
nts. Unsurprising, since self.authorizeCommand takes another function name as an argument. How can I structure the menu item to reflect the correct number of arguments without it trying to execute the command? -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter menu question--how to pass arguments

2007-03-30 Thread Kevin Walzer
[EMAIL PROTECTED] wrote: > On Mar 30, 2:32 pm, Kevin Walzer <[EMAIL PROTECTED]> wrote: >> I'm having difficulty structuring a Tkinter menu entry. Here is the >> command in question: >> >> self.finkmenu.add_command(label='Update List of Packages', &g

Re: Tkinter menu question--how to pass arguments

2007-03-30 Thread Kevin Walzer
Dave Opstad wrote: > In article <[EMAIL PROTECTED]>, > Kevin Walzer <[EMAIL PROTECTED]> wrote: > >> I'm having difficulty structuring a Tkinter menu entry. Here is the >> command in question: >> >> self.finkmenu.add_command(label='Upda

Re: [Pythonmac-SIG] MacPython wiki "moved" to Python wiki - now it's your turn...

2007-03-30 Thread Kevin Walzer
would anyone mind if I got started? A lot of this stuff doesn't appear to have been touched for three or four years. Any thoughts about what is most pressing? I have my own interests, and I'm not qualified to edit everything, but I'm open to suggestions. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Py_DECREF/Py_INCREF as Functions?

2007-03-30 Thread Kevin D.Smith
king memory all over the place. Is there any way to decref an object with a function that can be loaded from the Python DLL? -- Kevin D. Smith -- http://mail.python.org/mailman/listinfo/python-list

Submit patches for documentation

2007-04-02 Thread Kevin Walzer
dates as a text file, with a note indicating which documentation files they replace, sufficient? -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

os.popen--which one to use?

2007-04-03 Thread Kevin Walzer
I'm confused by the number of variations on "popen" that Python offers. I'm using os.popen in my programs without difficulty. Is this wrong? Should I be using popen 2, popen3, etc.? I'm not clear on what the advantages of popen2, 3 etc. are: they seem a lot more compl

Refactoring question

2007-04-03 Thread Kevin Walzer
ose, such as wxPython. What's the best way to do this? Can anyone point me in the right direction? How could, for instance, the top snippet be rewritten to separate the Tkinter parts from the generic stuff? -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: os.popen--which one to use?

2007-04-04 Thread Kevin Walzer
[EMAIL PROTECTED] wrote: > Check out subprocess. It's meant to be a replacement for all of the > above. OK, I've done this. What is the benefit of subprocess? Improved performance? It doesn't seem that way--in fact, os.popen has a non-blocking mode, which subprocess seem

Review/commit patch?

2007-04-05 Thread Kevin Walzer
How long does it take for a patch at the Python SF tracker to be reviewed and/or committed? I am unfamiliar with how the process works. (I originally submitted a bug report, then figured out how to patch the item in question, and subsequently submitted a patch.) -- Kevin Walzer Code by Kevin

Re: Welch essential for learning Tkinter well?

2007-04-05 Thread Kevin Walzer
mented or widely used, such as BWidgets. From that standpoint, the Welch book is a useful resource, though probably not essential. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Review/commit patch?

2007-04-05 Thread Kevin Walzer
Raymond Hettinger wrote: > [Kevin Walzer] >> How long does it take for a patch at the Python SF tracker to be >> reviewed and/or committed? I am unfamiliar with how the process works. >> >> (I originally submitted a bug report, then figured out how to patch t

Re: About Trolltech QT OpenSource license.

2007-04-10 Thread Kevin Walzer
o guarantee this will happen; such patching also happens with closed-source software. But many commercial developers look at the GPL and decide that this is a risk they do not want to take. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: About Trolltech QT OpenSource license.

2007-04-10 Thread Kevin Walzer
king kikapu wrote: > > > @ Kevin and Jarek : > thanks for the enlightening of that GPL thing. So, if i understand, i > create my Python software using Qt as my GUI, i earn the money for it > with the obligation to release my source code and somewhere in my > files i expli

Seeking list of Python applications on OS X

2007-04-11 Thread Kevin Walzer
e Mac Aqua environment (no X11). This query focuses mainly on desktop applications developed with one of the major cross-platform toolkits (Tkinter, wxPython, PyQt; Gtk does not run natively on the Mac). Please post to c.l.p. with your replies and I will add the appropriate response to the wiki. Thanks.

Re: "Cloning" file attributes and permissions

2007-04-12 Thread Kevin Kelley
The os module has this ability: http://docs.python.org/lib/os-file-dir.html -- Kevin Kelley On 4/12/07, Paulo da Silva <[EMAIL PROTECTED]> wrote: Hi! I need to process a file to produce another file that *must* have *exactly* the same attributes and permissions of the former. What

Re: "Cloning" file attributes and permissions

2007-04-13 Thread Kevin Kelley
dule which handles all the dirty parts in the background. It would create the new file, stat the original, and chmod/chown the new file as needed to match the original. All you would have to do after creating the module is pass the new function the original and new file information. -- Kevin Kelley

Re: "Cloning" file attributes and permissions

2007-04-13 Thread Kevin Kelley
,st_mode) # Matching permissions chown(new_fname,st_uid,st_gid) if __name__ == "__main__": match_perms('old_filename','new_filename') On 4/13/07, Kevin Kelley <[EMAIL PROTECTED]> wrote: If you know what the permissions are going to be then you c

Re: mac IDLE problems

2007-04-13 Thread Kevin Walzer
e Mac; all the standard Mac keyboard shortcuts are supported, and in general it's more stable. With 2.5, IDLE replaces the old PythonIDE that used to ship with MacPython. Can you update to 2.5? -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: mac IDLE problems

2007-04-13 Thread Kevin Walzer
7stud wrote: > On Apr 13, 10:27Â am, Kevin Walzer <[EMAIL PROTECTED]> wrote: >> 7stud wrote: >>> Hi, >>> In the IDLE, I can't get most shortcut keys that are listed next to >>> the menu items to work. Â For instance, under the Format menu item only &g

Re: Python editor/IDE on Linux?

2007-04-14 Thread Kevin Walzer
t; > Why not IDLE? -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Seeking list of Python applications on OS X

2007-04-14 Thread Kevin Walzer
Kevin Walzer wrote: > Hello, > > I am seeking to update this wiki page, which lists Mac OS X applications > using Python in a significant way: > > http://wiki.python.org/moin/MacPython/MacSoftwareUsingPython > I have updated the page. Thanks to all for their suggestion

Re: Future Python Gui?

2007-04-18 Thread Kevin Walzer
wiki/TileWrapper Tile will be integrated into Tk's core when 8.5 is released. It's supposed to enter beta testing Real Soon Now. However, I imagine that Python/Tkinter will depend on Tk 8.4 for the foreseeable future--certainly 8.5 won't be supported officially before a full, sta

Re: Future Python Gui?

2007-04-18 Thread Kevin Walzer
deployment tools such as py2app or py2exe are for--to wrap all the bits up into a simple package that the end user just installs, without worrying about dependencies. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Install Mac OS X - Idle doesn't show up

2007-09-14 Thread Kevin Walzer
7;t supposed to start it from the terminal unless you are running it under X11 or are using a non-framework build. If you built it the standard Mac way, or if you use the binary installer from python.org, Idle is installed in /Applications/MacPython 2.5. Look there, and you should be able to drag

Class for custom Tkinter widget--difficulty

2007-09-17 Thread Kevin Walzer
irst error above. Instead I have to use Module.Class.Method notation? I've never seen this before. Can someone point out what I am doing wrong, either in the construction of the class, the way it's imported, or in how I'm calling methods? -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Looking for web software in Python.

2007-09-17 Thread Kevin Ar18
Are any of the following pieces of web software available in Python (under a non-copyleft license like BSD or MIT or Python license)? Mailing list - with web accessable archive and list maintenance. Source control Wiki System Again, only non-copyleft licenses like MIT, BSD, or public domain.

Internationalize a Tkinter application

2007-09-20 Thread Kevin Walzer
l, Tkinter does not wrap the msgcat library. Instead I've found the gettext module in the Python standard library. Is this the preferred package for implementing localized strings in a Tkinter application, or am I missing something? -- Kevin Walzer Code by Kevin http://www.code

Re: Tkinter / Tk 8.5

2007-09-27 Thread Kevin Walzer
separate installation of the Tile libraries, but those can be obtained from ActiveState. I use this wrapper myself on OS X with a commercial application I develop, and Tile makes a big difference. (I maintain and update this wrapper at the wiki, but am not the original author.) --Kevin --

Re: Tkinter / Tk 8.5

2007-09-27 Thread Kevin Walzer
come soon... > >> 3.0: much more likely, 3.0 won't be out for some time. > > This would be my guess too... I'd say that Tk 8.5 will be out before Python 3.0: the beta phase should be fairly efficient on Tk. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

List search

2007-09-28 Thread Kevin Walzer
I'm having a problem with searching a list. Here's my code: mylist = ['x11', 'x11-wm', 'x11-system'] for line in mylist: if 'x11' in line: print line This results in the following output: x11 x11-wm x11-system I'm looking to return the list item that just has 'x11'. Ho

Re: List search

2007-09-28 Thread Kevin Walzer
Robert Kern wrote: > line == 'x11' > D'oh! That was simple, wasn't it? *smacks head* That did the trick. Thanks! -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: gui toolkits: the real story? (Tkinter, PyGTK, etc.)

2007-10-02 Thread Kevin Walzer
#x27;s license is BSD-style, which means it plays nice with both proprietary and open-source software (as does Python's license). Aren't PyGtk and wxPython LGPL? And PyQt is either GPL or proprietary. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter question

2007-10-05 Thread Kevin Walzer
o what I want. The sticky option with grid is > easier to handle. > "expand = 1" == "expand=TRUE"--that means the widget resizes itself when the window is re-sized. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter question

2007-10-05 Thread Kevin Walzer
Eric Brunel wrote: > On Fri, 05 Oct 2007 14:10:57 +0200, Kevin Walzer <[EMAIL PROTECTED]> > wrote: >> "expand = 1" == "expand=TRUE"--that means the widget resizes itself >> when the window is re-sized. > > That's the theory... But what

Re: tkinter question

2007-10-07 Thread Kevin Walzer
Hendrik van Rooyen wrote: > "Kevin Walzer" <[EMAIL PROTECTED]> wrote: > >> I find "pack" to be more flexible than "grid," so I prefer it for >> complex layouts. "grid" is better for simple layouts. > > *does a double take* a

Re: tkinter question

2007-10-07 Thread Kevin Walzer
Kevin Walzer wrote: > Well, I guess it depends on your viewpoint. I find "pack" flexible > because it allows me to think in terms of top, bottom, right, and left > in terms of arranging UI elements--it's an elegant way to do it in my > view. I tend to use "gri

Re: Cross-platform GUI development

2007-10-12 Thread Kevin Walzer
st, or other script-level Tk exetensions (i.e. they do not require compiliaton). Wrappers for many of these are available at the Tkinter wiki (http://tkinter.unpythonic.net/wiki/FrontPage) --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Cross-platform GUI development

2007-10-13 Thread Kevin Walzer
its own widgets and puts the menubar on each window. Tk does much better; while it's not very pretty, menubars are in the correct place and buttons work correctly. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python on imac

2007-10-14 Thread Kevin Walzer
. Maybe you mean something else? > > > Alex It's a very old version of wxPython: 2.5.3, I think. Run ls /usr/lib | grep wx and see what you get. Do likewise for ls /Library/Python/2.3 | grep wx. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Cross-platform GUI development

2007-10-15 Thread Kevin Walzer
veral hundred dollars, but I am not willing to pay a few hundred dollars for a commercial tool that has the same interface glitches. Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Build Python 2.5 against Tk 8.5

2007-10-16 Thread Kevin Walzer
I'd like to experiment with Tk 8.5 (now in beta) in my Python application, but Python 2.5 requires Tk 8.4.x. What would I need to patch in the Python sources or build scripts to get it built against Tk 8.5? -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.pytho

Re: Build Python 2.5 against Tk 8.5

2007-10-16 Thread Kevin Walzer
pp against Tk 8.5 with a stock Python installation, I get an error message saying that Tk 8.4.x is required. It's probably tkinter.so that hard-codes the Tcl/Tk version, not Python itself--I should have been clearer on that. However, I still need to know what to patch... -- Kevin Walzer Code b

Re: documentation for tk.call interface

2007-10-16 Thread Kevin Walzer
r(self, name='PY_VAR'): """Return value of Tcl variable NAME.""" return self.tk.getvar(name) and so on. There's simply no other way to get at the guts of Tk without using tk.call at some level. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Build Python 2.5 against Tk 8.5

2007-10-16 Thread Kevin Walzer
urself? I'll try to build Python from source and link it against Tk 8.5. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: why did these companies choose Tcl over Python

2007-10-31 Thread Kevin Walzer
everal different OO systems), and the size of its community--the larger number of Python programmers out there make it much more likely that you will find an open-source solution for your needs. Tcl's community is much smaller, its development moves more slowly, and Tcl does not compete

Re: where is python on linux?

2007-01-09 Thread Kevin Yuan
Frank Potter wrote: >> ... where is the executable python file? ... >> > > does > > whereis python "whereis" is cool! -- http://mail.python.org/mailman/listinfo/python-list

I wrote a C++ code generator in Python, would anyone please help me to review the code? :)

2007-01-15 Thread Kevin Wan
fgen is a free command line tool that facilitates cross platform c++ development, including header generation, cpp file generation, makefile generation, unit test framework generation, etc. http://sf.net/projects/fgen I'm not very familiar with Python. Any feedback are appreciated! Or anyone like

Re: I wrote a C++ code generator in Python, would anyone please help me to review the code? :)

2007-01-16 Thread Kevin Wan
o work with you guys, Kevin Vineeth Kashyap wrote: > Hi, > I am interested in your proposal. I am basically a C/C++ programmer, > but recently fell in love with python. Please send more details on > fgen. We could probably start working. :) > Kevin Wan wrote: > > fgen is a free

Re: I wrote a C++ code generator in Python, would anyone please help me to review the code? :)

2007-01-16 Thread Kevin Wan
Sorry, I didn't write that much document. But you can use fgen --help to get the usage. I'm writing document now. :) Thanks, Kevin [EMAIL PROTECTED] wrote: > Kevin Wan wrote: > > fgen is a free command line tool that facilitates cross platform c++ > > development, in

OSCON 2007: Call for Proposals

2007-01-16 Thread Kevin Altis
OSCON 2007 http://conferences.oreillynet.com/os2007/ Save the date for the 9th annual O'Reilly Open Source Convention, happening July 23-27, 2007 at the Oregon Convention Center in beautiful Portland, Oregon. Call For Participation -- Submit a proposal-fill out the form at:

Re: I wrote a C++ code generator in Python, would anyone please help me to review the code? :)

2007-01-17 Thread Kevin Wan
I've added a document for fgen. Please check it. Thanks, Kevin [EMAIL PROTECTED] wrote: > Kevin Wan wrote: > > fgen is a free command line tool that facilitates cross platform c++ > > development, including header generation, cpp file generation, makefile > > gener

2007 DST Changes

2007-01-23 Thread Kevin Kelley
Is python affected by the 2007 DST changes in the US? Other than making sure the OS is patched correctly (Win 2K and Solaris 8) is there anything else that needs to be done from a Python point of view? Thanks, Kevin Kelley -- http://mail.python.org/mailman/listinfo/python-list

Re: My python programs need a GUI, wxPython or PyQt4?

2007-01-24 Thread Kevin Walzer
le under commercial-friendly terms (BSD-style licenses). I make heavy use of Tile and Tablelist in my applications. Tktreectrl is incredibly powerful, but is also quite complex, and I have not used it myself in an application. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://

Re: My python programs need a GUI, wxPython or PyQt4?

2007-01-24 Thread Kevin Walzer
Kevin Walzer wrote: > > Tablelist: http://www.nemethi.de/ > Tabelist for Tkinter (with Tile support): > http://tkinter.unpythonic.net/wiki/TableListTileWrapper > Additionally, here is a link to some screenshots for Tablelist: http://www.nemethi.privat.t-online.de/tablelist/s

Re: My python programs need a GUI, wxPython or PyQt4?

2007-01-24 Thread Kevin Walzer
hg wrote: > Kevin Walzer wrote: > >> Kevin Walzer wrote: >> >>> Tablelist: http://www.nemethi.de/ >>> Tabelist for Tkinter (with Tile support): >>> http://tkinter.unpythonic.net/wiki/TableListTileWrapper >>> >> Additionally,

Win XP "Sleep" mode: can Py wake up?

2007-01-26 Thread Bell, Kevin
Does anyone have any experience having python deal with sleep mode? I'd love to run something that would hear a sleep event coming and pickle some data before sleep, then after coming out of sleep, unpickle... Any thoughts? -- http://mail.python.org/mailman/listinfo/python-list

Function to create Tkinter PhotoImages from directory?

2007-01-28 Thread Kevin Walzer
l.gif') self.stop=PhotoImage(file=self.imagedir + 'stop.gif') What I'd like to do is glob the directory and create images with the same name as the gif file, but I can't figure out how to get that to work. Can anyone help? -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

ANNOUNCE: OSCON 2007 Call for Participation Ends Soon

2007-01-30 Thread Kevin Altis
Be Heard at OSCON 2007 -- Submit Your Proposal to Lead Sessions and Tutorials by February 5! The O'Reilly Open Source Convention July 23-27, 2007 Portland, Oregon http://conferences.oreillynet.com/os2007/ More than 2500 open source developers, gurus, experts and users will gather, eager to netwo

Re: PyObjC with Xcode 3.0 Leopard

2007-11-05 Thread Kevin Walzer
tion is a simple example of how to use the PyObjC with > xcode 2.0. > http://developer.apple.com/cocoa/pyobjc.html > > Could you give any hint to start to dig into it? > The PythonMac or PyObjc lists are probably a better place to ask this kind of question. -- Kevin Walzer

Re: Building python packages for the correct architecture on OSX 10.5

2007-11-14 Thread Kevin Walzer
) >return OrigExtension(*args, **kwargs) > > > Obviously this is a dirty hack, and I would like to know how to do > this the right way. How can this be done better? > > -- > Arnaud > You may want to post this on the MacPython list--there are plenty of experts there on building Python mudles for OS X. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Qt Designer required for PyQt?

2007-11-22 Thread Kevin Walzer
al of using the GUI builder to visualize how your GUI will look, but it also can add a layer of complexity. Does anyone write complex PyQt apps without using Designer? -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter and pure tk component(Gridplus2)

2007-12-03 Thread Kevin Walzer
by python and how to do that ? > > Thx > E, You'll probably have to write a wrapper that translates the original Tk commands (in Tcl) to Python. Look at the lib-tk package for some examples. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Tkinter--unexpected behavior with pack_forget()

2007-12-20 Thread Kevin Walzer
t what I'm doing wrong? Calling "pack forget" from Tcl maps/unmaps the widget as expected. In this case, I can't quite figure out where my error is. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

pyTTS broken : (

2007-12-21 Thread Bell, Kevin
Importing pyTTS works, but then it bombs... any ideas? This worked without a hitch on my old computer! >>> import pyTTS >>> tts = pyTTS.Create() Traceback (most recent call last): File "C:\", line 1, in ? File "c:\Python24\Lib\site-packages\pyTTS\__init__.py", line 28, in Create

RE: pyTTS broken SOLVED

2007-12-21 Thread Bell, Kevin
: ( Bell, Kevin wrote: > Importing pyTTS works, but then it bombs... any ideas? This worked > without a hitch on my old computer! > >> >> import pyTTS > >> >> tts = pyTTS.Create() > > Traceback (most recent call last): > File "C:\", lin

Tcl/Tk 8.5.0 released

2007-12-22 Thread Kevin Walzer
ially with the addition of themed widgets. It's definitely worth checking out! --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

send pdf or jpg to printer

2006-04-19 Thread Bell, Kevin
Does anyone have any suggestions on printing pdf's? These pdf's don't change much, so if it be more straight forward to convert them to jpgs, or another format, then that'd be fine too. Thanks in advanced, Kevin -- http://mail.python.org/mailman/listinfo/python-list

search an entire website given the homepage URL

2006-04-25 Thread Bell, Kevin
I know I can use urllib2 to get at a website given urllib2.urlopen(url) but I'm unsure how to then go through all pages that are linked to it, but still in the domain. If I want to search through the entire python website give the homepage, how would I go about it? I don't reinvent the wheel if s

Re: search an entire website given the homepage URL

2006-04-25 Thread Bell, Kevin
>use a search engine (try the search box in the upper right corner). >using a spider to download the entire site just so you can "search through >it" is bloody impolite. Really? I'd argue that's impolite only if you're an impolite person with a rude agenda, which is not what I had in mind, but t

Re: search an entire website given the homepage URL

2006-04-25 Thread Bell, Kevin
impolite for newspapers to use someone's name without informing them of it, for sure, but you can't count on journalists to call you up. Would this application of a spider be impolite? Bell, Kevin wrote: >>use a search engine (try the search box in the upper right corner). > >

stdin: processing characters

2006-04-27 Thread Kevin Simmons
ake a very long time. Do you wish to proceed?") read -e -n 1 -p "[y/n]-->" INPUT if [ "$INPUT" == "y" ]; then sh scan -s cd - &>/dev/null else (echo) (echo "Scan aborted.") fi ;; ... rest of case statement esac done -- Kevin Simmons [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: stdin: processing characters

2006-05-01 Thread Kevin Simmons
Serge Orlov wrote: > Cameron Laird wrote: >> In article <[EMAIL PROTECTED]>, >> Edward Elliott <[EMAIL PROTECTED]> wrote: >>> Kevin Simmons wrote: >>>> I have a python script that prompts the user for input from stdin via a >>>> m

py on windows Mobile 5.0?

2006-05-15 Thread Bell, Kevin
Does anyone know if/how to go about using python on a windows mobile 5.0 PDA? Kevin -- http://mail.python.org/mailman/listinfo/python-list

hide python window

2006-05-26 Thread Bell, Kevin
When I run a script, how can I make it run in the background? I don't want to see the command window because it runs all day. I'm on windows... -- http://mail.python.org/mailman/listinfo/python-list

hide python window, con'td

2006-05-26 Thread Bell, Kevin
Great! And now that it's hiding w/ .pyw, how would I kill it if I want? Just log off, or is there a better way? Kevin -- http://mail.python.org/mailman/listinfo/python-list

RE:RE: hide python window, cont'd

2006-05-26 Thread Bell, Kevin
Bell, Kevin wrote: > Great! And now that it's hiding w/ .pyw, how would I kill it if I want? > Just log off, or is there a better way? > > Kevin > > >>JOE WROTE: >>Close it in the Task Manager? I don't see it in the task manager. -- http://mail.python.org/mailman/listinfo/python-list

Re: TK 8.5

2007-12-31 Thread Kevin Walzer
sing a custom-built Python that links to 8.5 with no problem. However, you do have to use some additional modules (referenced in another post) to get things working properly. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: TK 8.5

2008-01-01 Thread Kevin Walzer
er.unpythonic.net/wiki/TileWrapper works well enough, but as I am not the original author of this module, I cannot really offer it for inclusion in the core Python distribution. As such, someone will have to step up and write a new implememtation. --Kevin -- Kevin Walzer Code by Kevin http

Does PIL work with Tk 8.5?

2008-01-07 Thread Kevin Walzer
I'm using a build of Python 2.5.1 on OS X 10.5.1 that links to Tk 8.5. Trying to test PIL with this new build, Python barfs when trying to display an image in a Tkinter Label. Here is my sample code: --- from Tkinter import * import Image, ImageTk root = Tk() im = Image.open('/U

Re: Does PIL work with Tk 8.5?

2008-01-07 Thread Kevin Walzer
require re-compilation to be used with 8.5. Since PIL is a Python library, however, you may be right. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Does PIL work with Tk 8.5?

2008-01-07 Thread Kevin Walzer
Kevin Walzer wrote: > > Tk itself has a stubs mechanism that allows libraries compiled against > earlier versions to be used with later versions. It's different than > Python in this respect. A pure-Tk library (such as Img or TkPNG) built > against Tk 8.4 would not requi

Re: Problem with Tkinter.PhotoImage

2008-01-10 Thread Kevin Walzer
o library to support additional images (Tk has an Img extension, and Python Image Library is also very good). -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6   7   8   >