0

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.

Display 1

Display 2

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()
Bryan Oakley
  • 370,779
  • 53
  • 539
  • 685
Fahadkalis
  • 2,971
  • 8
  • 23
  • 40
  • 1
    Maybe you get some hints [here](http://stackoverflow.com/q/15981000/2870069) or [here](http://stackoverflow.com/q/7966119/2870069) – Jakob Jan 12 '15 at 15:45
  • You're hard-coding specific sizes in your app, why do you think the window should be different sizes on different screens? – Bryan Oakley Jan 14 '15 at 11:57

1 Answers1

1
step= root.attributes('-fullscreen', True)