Reputation: 3261
I am writing a program in Python on Ubuntu which cover my whole display screen but if I opened that same program on other display screen it is not covering whole screen. I am attaching both screen shots.
Can you plz help me that how can I overcome this problem which create auto whole screen on all types of display on Ubuntu
import ttk
from Tkinter import *
if __name__ == '__main__':
root = Tk()
root.title("APPLICATION") # Program Objective
mainframe = ttk.Frame(root, padding="540 445 540 445")
mainframe['borderwidth'] = 20
mainframe['relief'] = 'sunken'
mainframe.grid()
ttk.Button(mainframe, text="Exit", command=root.quit).grid (column=60, row=3, padx=8, pady=8, sticky=W)
root.mainloop()
Upvotes: 0
Views: 1000