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
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
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
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
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:
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
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
> 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
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
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
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
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
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
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
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
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:
--
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
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
- 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
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.
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
21 matches
Mail list logo