Re: Launching an independent Python program in a cross-platform way (including mac)

2007-04-30 Thread Kevin Walzer
AppleScript would be: tell app "Terminal" to activate If you want to Terminal to run a command-line program from AppleScript, you can do this with the "do script" command. Code to do this could look something like this: myscript = "python -e foo.py" os.system('osascript -e '\tell app \"Terminal"\ to do script %s\'', myscript) I haven't tested this, but you get the basic idea--define the script and command-line paramaters in a string, then pass that to AppleScript/osascript as a variable. This code should launch Terminal, then run the external Python script. HTH, Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Tcl-tk 8.5?

2007-05-04 Thread Kevin Walzer
lped me with some Tk issues). What is so bad about Tkinter? What should replace it in the core library? -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Licence for webchecker module?

2007-05-12 Thread Kevin Walzer
I want to use webchecker.py (distributed in Tools/webchecker of the Python source code tarball) in a project, but there is no license listed in any of the scripts that I can see. Is this code covered by the standard Python license? -- Kevin Walzer Code by Kevin http://www.codebykevin.com

Re: Distributing programs depending on third party modules.

2007-05-15 Thread Kevin Walzer
ozen binaries," including the freeze module that ships with Python itself, cx_freeze, and PyInstaller: these three may work on Linux/Unix as well as Windows (they are not supported on the Mac). But the methods above are generally the ones most widely used. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Distributing programs depending on third party modules.

2007-05-15 Thread Kevin Walzer
it will download and build/install not just the PyQt bits, but also Qt itself, sip, and all the other foundational components? If easy_install handles all that, I'm impressed. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: tkFileDialog.askopenfilename()

2007-05-15 Thread Kevin Walzer
rting directory. > Thanks > Rahul > Use the "initialdir" flag: filename = askopenfilename(title="Open File", initialdir=(os.path.expanduser('~/')) HTH, Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Distributing programs depending on third party modules.

2007-05-16 Thread Kevin Walzer
Bruno Desthuilliers wrote: > Kevin Walzer a écrit : > > Note that if you go that way, neither Windows nor MacOS X are actually > able to cleanly manage such dependencies (which is why the usual > solution on these platforms - or at least on Windows - is to just bundle > ever

Re: Distributing programs depending on third party modules.

2007-05-16 Thread Kevin Walzer
Tina I wrote: > Kevin Walzer wrote: > And maybe the smartest thing to do would be to dump PyQt and just go for > tkinter, however ugly it is :/ Tkinter doesn't have to be ugly. I sell a proprietary Tkinter app commercially on OS X: http://www.codebykevin.com/phynchronicity-r

Re: A few questions

2007-05-21 Thread Kevin Walzer
able solution, and will probably give you more out of the box than Tkinter. My main reason for using Tk is that I already know it well. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and GUI

2007-05-21 Thread Kevin Walzer
nstall. 4. PyGTK is popular on*Nix and works OK on Windows. But it doesn't run natively on the Mac. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: A few questions

2007-05-21 Thread Kevin Walzer
e and the other users don't need > to load anything in order to run the app? Google for "py2app." It's the standard tool for distributing standalone Python apps on OS X. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Tix and OS X

2007-05-26 Thread Kevin Walzer
ance. > > This is an Intel Mac, btw. > > -jjr > You have to have the Tcl Tix package installed--the Python module just wraps it. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Tix not properly installed on OS X?

2007-07-24 Thread Kevin Walzer
y outdated, by Tcl developers, so many distributions do not include it. It is not shipped with ActiveState on the Mac, nor does Apple include Tix in the Tcl/Tk libraries bundled with OS X. From my perspective there are far better, more modern alternatives, such as BWidgets, TkTreeCtrl, Tablelist, and Til

Re: Tix not properly installed on OS X?

2007-07-24 Thread Kevin Walzer
Brian Blais wrote: > So I tried to build Tix, and it complains about a tcl header file > (tclPort.h). My Tcl stuff is in > /System/Library/Frameworks/Tcl.framework/Versions/8.4/, but the header > file doesn't exist. I assume I need to download the source for Tcl and > build that, or is it en

Re: Tix.Tk() on Mac Intel

2007-07-26 Thread Kevin Walzer
rror: can't find package Tix > > The only way I got Tix.Tk() working so far was using Fink but I want > the nice aqua visual for python. Is there any way of getting it > working? > > I would appreciate any help here. > Many thanks in advance. > Cheers, > Alan You&

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

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

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

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
ourse that money is all > about but becauce they released Qt under GPL they simply cannot > prevent anyone from gaining money using it. > In this case, "commercial" == "proprietary" == "closed-source." If your source is released in complicance with the GPL

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

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

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

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

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

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
sh is the different version of Tk--could this be making a difference, or am I doing something wrong? -- 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
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

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
dard Mac application bundle via py2app--most Mac users don't run Python apps from the Terminal but instead double-click an application icon. In that event, "lift" should work fine, because the application will already have focus. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

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: 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
while the top frame stays visible. > Please post the code you're using--it will be easier to help if we can see exactly what you are trying. --K -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

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

<    1   2   3   4   >