Open GoogleCodeExporter opened 8 years ago
I tried reproducing the problem without doing anything fancy but didn't hit the
problem. Here is the actual code that I used:
{{{
import Tkinter
import ttk
root = Tkinter.Tk()
canvas = Tkinter.Canvas(scrollregion=(0, 0, 400, 400))
vbar = ttk.Scrollbar(orient='vertical', command=canvas.yview)
hbar = ttk.Scrollbar(orient='horizontal', command=canvas.xview)
canvas.configure(xscrollcommand=hbar.set, yscrollcommand=vbar.set)
vbar.pack(side='right', fill='y')
hbar.pack(side='bottom', fill='x')
canvas.pack(fill='both', expand=True)
# Change the following to use an image you have over there
img = Tkinter.PhotoImage(file='box1.gif')
canvas.create_image(250, 250, image=img)
root.mainloop()
}}}
Can you include a sample that demonstrates the problem ?
Original comment by ggpolo
on 18 Feb 2009 at 9:21
Original issue reported on code.google.com by
handja...@gmail.com
on 17 Feb 2009 at 2:17