Tkinter error in Button.pack()
Adonis
deltapigz at telocity.com
Thu Aug 29 13:00:44 EDT 2002
try:
bBackup = Button(MainWin, image=iBackup)
bBackup.place(x=4, y=4)
Adonis
--
"..hyperlinks -- those single-click conveniences that make the Web what it
is." -CNN
"Tim Jones" <tjones at tolisgroup.com> wrote in message
news:mailman.1030635416.17208.python-list at python.org...
> I am working with Python2.2 as built under Red Hat Linux 7.3. When I
> execute the following statements, a tk exception occurs:
>
> >>> from Tkinter import *
> >>> MainWin = Tk()
> >>> MainWin.geometry('400x200+10+10')
> >>> iBackup = PhotoImage(file="/usr/local/pics/uparrow.gif")
> >>> bBackup = Button(image=iBackup)
> >>> bBackup.place(MainWin,x=4, y=4)
>
> The Button appears, but the error is:
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/lib/python2.2/lib-tk/Tkinter.py", line 1641, in
> place_configure
> self.tk.call(
> TclError: unknown or ambiguous option "-bd": must be -anchor,
> -bordermode, -height, -in, -relheight, -relwidth, -relx, -rely, -width,
> -x, or -y
>
> Does anyone know of a problem in 2.2's Tkinter library with the place()
> method?
>
>
> --
> Tim Jones tjones at tolisgroup.com
>
>
More information about the Python-list
mailing list