resize a tkinter window to the size of a gif
slhath at home.com
Tue Mar 6 16:05:43 CET 2001
I have a tkinter window that I want to resize to the size of a background
image I am placing on it. The window always seems to have a border of a few
pixels all the way around it. Can anyone tell me how to get rid of this?
The code I am using is below:
frmMain = Pmw.initialise()
iPath = mainPath + themePath + '\\'
imgBG = PhotoImage(file=iPath + imgSettings)
frmMain.width = imgBG.width()
frmMain.height = imgBG.height()
theCanvas = Canvas(frmMain,width=frmMain.width,height=frmMain.height)
Any help would be appreciated.
More information about the Python-list