#! /usr/bin/env python
# -*- coding: utf-8 -*-

import tkinter as tk


class FullScreenApp(object):
    def __init__(self, master, **kwargs):
        self.root = master
        # self.tk.attributes('-zoomed', True)  # This just maximizes it so we can see the window. It's nothing to do with fullscreen.
        self.frame = tk.Frame(self.root)
        self.frame.pack()
        #self.state = False
        self.root.attributes("-fullscreen", 1)
        #self.root.bind("<F11>", self.toggle_fullscreen)
        #self.root.bind("<Escape>", self.end_fullscreen)

    '''def toggle_fullscreen(self, event=None):
        self.state = not self.state  # Just toggling the boolean
        self.root.attributes("-fullscreen", self.state)
        return "break"'''

    '''def end_fullscreen(self, event=None):
        self.state = False
        self.root.attributes("-fullscreen", False)
        return "break"'''

root=tk.Tk()
w = root.winfo_screenwidth()

if w == 1920:
    img=tk.PhotoImage(file='1.png')
elif w == 1366:
    img=tk.PhotoImage(file='2.png')

label_img = tk.Label(root, image = img)
label_img.pack()
app=FullScreenApp(root)
root.mainloop()
eb03913dd1723562e6c4a4e441a7d758d0fe31cb
<mask token>


class FullScreenApp(object):

    def __init__(self, master, **kwargs):
        self.root = master
        self.frame = tk.Frame(self.root)
        self.frame.pack()
        self.root.attributes('-fullscreen', 1)
    <mask token>
    <mask token>


<mask token>

<mask token>


class FullScreenApp(object):

    def __init__(self, master, **kwargs):
        self.root = master
        self.frame = tk.Frame(self.root)
        self.frame.pack()
        self.root.attributes('-fullscreen', 1)
    """def toggle_fullscreen(self, event=None):
        self.state = not self.state  # Just toggling the boolean
        self.root.attributes("-fullscreen", self.state)
        return "break\""""
    """def end_fullscreen(self, event=None):
        self.state = False
        self.root.attributes("-fullscreen", False)
        return "break\""""


<mask token>

<mask token>


class FullScreenApp(object):

    def __init__(self, master, **kwargs):
        self.root = master
        self.frame = tk.Frame(self.root)
        self.frame.pack()
        self.root.attributes('-fullscreen', 1)
    """def toggle_fullscreen(self, event=None):
        self.state = not self.state  # Just toggling the boolean
        self.root.attributes("-fullscreen", self.state)
        return "break\""""
    """def end_fullscreen(self, event=None):
        self.state = False
        self.root.attributes("-fullscreen", False)
        return "break\""""


<mask token>
if w == 1920:
    img = tk.PhotoImage(file='1.png')
elif w == 1366:
    img = tk.PhotoImage(file='2.png')
<mask token>
label_img.pack()
<mask token>
root.mainloop()

<mask token>


class FullScreenApp(object):

    def __init__(self, master, **kwargs):
        self.root = master
        self.frame = tk.Frame(self.root)
        self.frame.pack()
        self.root.attributes('-fullscreen', 1)
    """def toggle_fullscreen(self, event=None):
        self.state = not self.state  # Just toggling the boolean
        self.root.attributes("-fullscreen", self.state)
        return "break\""""
    """def end_fullscreen(self, event=None):
        self.state = False
        self.root.attributes("-fullscreen", False)
        return "break\""""


root = tk.Tk()
w = root.winfo_screenwidth()
if w == 1920:
    img = tk.PhotoImage(file='1.png')
elif w == 1366:
    img = tk.PhotoImage(file='2.png')
label_img = tk.Label(root, image=img)
label_img.pack()
app = FullScreenApp(root)
root.mainloop()

#! /usr/bin/env python
# -*- coding: utf-8 -*-

import tkinter as tk


class FullScreenApp(object):
    def __init__(self, master, **kwargs):
        self.root = master
        # self.tk.attributes('-zoomed', True)  # This just maximizes it so we can see the window. It's nothing to do with fullscreen.
        self.frame = tk.Frame(self.root)
        self.frame.pack()
        #self.state = False
        self.root.attributes("-fullscreen", 1)
        #self.root.bind("<F11>", self.toggle_fullscreen)
        #self.root.bind("<Escape>", self.end_fullscreen)

    '''def toggle_fullscreen(self, event=None):
        self.state = not self.state  # Just toggling the boolean
        self.root.attributes("-fullscreen", self.state)
        return "break"'''

    '''def end_fullscreen(self, event=None):
        self.state = False
        self.root.attributes("-fullscreen", False)
        return "break"'''

root=tk.Tk()
w = root.winfo_screenwidth()

if w == 1920:
    img=tk.PhotoImage(file='1.png')
elif w == 1366:
    img=tk.PhotoImage(file='2.png')

label_img = tk.Label(root, image = img)
label_img.pack()
app=FullScreenApp(root)
root.mainloop()