Re: [Tkinter-discuss] [Image-SIG] Possible to fade a small Tkinter image into a specific background color?

2010-12-09 Thread Edward Cannon
using the blend function with a solid color image (bg color) and your image will work, a simple loop changing the alpha value is all you need. In my experience this is pretty fast. Check the documentation for details. Edward Cannon Unicorn School On Tue, Dec 7, 2010 at 5:07 AM, Wayne Werner wrote

[Tkinter-discuss] Possible to set the min/max height or width of a Tkinter or ttk Frame?

2010-12-09 Thread python
The size of Tkinter windows can be controlled via the following methods: .minsize() .maxsize() .resizable() Are there equivalent ways to control the size of Tkinter or ttk Frames? Thank you, Malcolm ___ Tkinter-discuss mailing list Tkinter-discuss@pyth

[Tkinter-discuss] pack equivalent of grid_remove(), eg. pack_remove() ?

2010-12-09 Thread python
Is there a pack equivalent of the grid_remove() method where a widget's original pack() settings are restored on a re-pack()? Use case: When I show a packed widget that has been hidden via pack_forget(), I would like to have the widget re-packed with its original pack settings when I issue the widg

Re: [Tkinter-discuss] pack equivalent of grid_remove(), eg. pack_remove() ?

2010-12-09 Thread Kevin Walzer
On 12/9/10 9:25 AM, pyt...@bdurham.com wrote: Is there a pack equivalent of the grid_remove() method where a widget's original pack() settings are restored on a re-pack()? Use case: When I show a packed widget that has been hidden via pack_forget(), I would like to have the widget re-packed with

[Tkinter-discuss] How to determine if a widget is pack()-ed or unpacked via pack_forget()?

2010-12-09 Thread python
Is there a widget method that returns whether a widget is pack()-ed or unpacked? The same question applies to widget's placed with the grid() or place() layout managers. Thank you, Malcolm ___ Tkinter-discuss mailing list Tkinter-discuss@python.org http:

Re: [Tkinter-discuss] pack equivalent of grid_remove(), eg. pack_remove() ?

2010-12-09 Thread python
Kevin, > No, there isn't. You have to be careful with the packing order for pack_forget() to work--this works best if you limit its use to the last widget group packed. Otherwise, it may be packed in a different location, with surprising results. Thanks for that tip! (You're right - I would ha

Re: [Tkinter-discuss] pack equivalent of grid_remove(), eg. pack_remove() ?

2010-12-09 Thread Michael Lange
Hi, Thus spoketh pyt...@bdurham.com unto us on Thu, 09 Dec 2010 09:25:33 -0500: > Is there a pack equivalent of the grid_remove() method where a > widget's original pack() settings are restored on a re-pack()? > Use case: When I show a packed widget that has been hidden via > pack_forget(), I wo

Re: [Tkinter-discuss] pack equivalent of grid_remove(), eg. pack_remove() ?

2010-12-09 Thread python
> Is there a best practice way to show/hide specific widgets (or containers) in > Tkinter? Another way to control visibility might be to size a control/widget a height/width of 0,0. But Tkinter ignores this type of size request. (It does accept a size request of 1,1, but in the case of Frame, im

Re: [Tkinter-discuss] pack equivalent of grid_remove(), eg. pack_remove() ?

2010-12-09 Thread Michael Lange
Thus spoketh pyt...@bdurham.com unto us on Thu, 09 Dec 2010 09:48:54 -0500: > Kevin, > > > No, there isn't. You have to be careful with the packing order for > pack_forget() to work--this works best if you limit its use to the last > widget group packed. Otherwise, it may be packed in a differ

Re: [Tkinter-discuss] pack equivalent of grid_remove(), eg. pack_remove() ?

2010-12-09 Thread python
Michael, Thanks for the pack_forget() implementation and for the confirmation that one should use grid vs. pack for scenarios that require showing/hiding widgets. Malcolm ___ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org

[Tkinter-discuss] Recommendations on when to use pack vs. grid layouts?

2010-12-09 Thread python
Are there any best practice tips regarding when one should use pack vs. grid for their layouts? >From what I've been reading via google, the concencus seems to be that grid can handle any pack scenario but not vice-versa. Thanks, Malcolm ___ Tkinter-dis

Re: [Tkinter-discuss] Recommendations on when to use pack vs. grid layouts?

2010-12-09 Thread Michael Lange
Thus spoketh pyt...@bdurham.com unto us on Thu, 09 Dec 2010 10:52:39 -0500: > Are there any best practice tips regarding when one should use > pack vs. grid for their layouts? > > >From what I've been reading via google, the concencus seems to be > that grid can handle any pack scenario but not

Re: [Tkinter-discuss] Recommendations on when to use pack vs. grid layouts?

2010-12-09 Thread Wayne Werner
On Thu, Dec 9, 2010 at 10:33 AM, Michael Lange wrote: > Thus spoketh pyt...@bdurham.com > unto us on Thu, 09 Dec 2010 10:52:39 -0500: > > > Are there any best practice tips regarding when one should use > > pack vs. grid for their layouts? > > > > >From what I've been reading via google, the conc

Re: [Tkinter-discuss] How to determine if a widget is pack()-ed or unpacked via pack_forget()?

2010-12-09 Thread Michael O'Donnell
Look at: w.winfo_ismapped() ...Note that if a widget IS packed, but the parent (or some ancestor) is not, this will return False. w.winfo_manager() -- will return "" if the widget is not packed/gridded etc., disregarding whether the parent is not packed. Otherwise returns info on how it is plac

Re: [Tkinter-discuss] Recommendations on when to use pack vs. grid layouts?

2010-12-09 Thread Michael O'Donnell
If you are placing a row of widgets into a frame, with pack you don't have to keep track of which column you are up to, just pack them one after the other. Mick On Thu, Dec 9, 2010 at 4:52 PM, wrote: > Are there any best practice tips regarding when one should use pack vs. grid > for their lay

[Tkinter-discuss] methods of control PanedWindow

2010-12-09 Thread craf
I Do learn to work with methods of control PanedWindow.The only that I failed to understand how they are used are: PanedWindow.proxy_coord() PanedWindow.proxy_forget() PanedWindow.proxy_place(x, y) Does anyone know what they are good? Annex code test: --

Re: [Tkinter-discuss] [Image-SIG] Possible to fade a small Tkinter image into a specific background color?

2010-12-09 Thread Christopher Barker
On 12/7/10 5:07 AM, Wayne Werner wrote: On Mon, Dec 6, 2010 at 8:38 PM, Well, if you convert the image to a numpy array then you can call some C functions on it so it's not that slow. Once you've got it in a numpy array, you can use numpy to manipulate it -- you're unlikely to need C. -Ch

Re: [Tkinter-discuss] methods of control PanedWindow

2010-12-09 Thread Michael Lange
Thus spoketh craf unto us on Thu, 09 Dec 2010 15:52:43 -0300: > I Do learn to work with methods of control PanedWindow.The only that I > failed to understand how they are used are: > > PanedWindow.proxy_coord() > PanedWindow.proxy_forget() > PanedWindow.proxy_place(x, y) > > > Does anyone kno

[Tkinter-discuss] [Fwd: Re: methods of control PanedWindow]

2010-12-09 Thread craf
- Mensaje reenviado > De: Michael Lange > Para: tkinter-discuss@python.org > Asunto: Re: [Tkinter-discuss] methods of control PanedWindow > Fecha: Thu, 9 Dec 2010 20:38:41 +0100 > > Thus spoketh craf > unto us on Thu, 09 Dec 2010 15:52:43 -0300: > > > I Do learn to work with m

Re: [Tkinter-discuss] Recommendations on when to use pack vs. grid layouts?

2010-12-09 Thread Cam Farnell
Another option is to use Rapyd-TK (http://www.bitflipper.ca/rapyd/). It only uses pack but it makes it trivially easy to add additional frames and it also makes it really easy to rearrange the layout of your widgets, something not easy with pack or grid by themselves. Cheers Cam Farnell pyt.

Re: [Tkinter-discuss] how make active python 3 use active tcl on mac os?

2010-12-09 Thread Sridhar Ratnakumar
On 2010-11-23, at 1:14 PM, David Cortesi wrote: > I installed ActiveState Python 3.1.4, and also ActiveState Tcl/Tk, both on > Mac OS X 10.6. > > Python3 executing "import * from tkinter" is getting and executing the Apple > version of Tcl/Tk which is level 8.5.7. It appears to be getting it f