In Tkinter, I am trying to make the askdirectory menu more user friendly. Is there a way to center the focus of the window on the last folder opened, both vertically and horizontally? I don't want my users to have to scroll right when they get deep into subfolders.
def action1():
master.withdraw()
dirname = tkFileDialog.askdirectory(parent=master,initialdir='./',title='Please select Lot directory')
global dirname
master.destroy()