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

import gi, os
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk

class MyWindow(Gtk.Window):

    def __init__(self):
        Gtk.Window.__init__(self, title="Modo de projeção")

        self.resize(600,100)
        self.set_position(Gtk.WindowPosition.CENTER_ALWAYS)
        self.box = Gtk.Box(spacing=6)
        self.add(self.box)

        self.button1 = Gtk.Button(label="Somente PC")
        self.button1.connect("clicked", self.on_button1_clicked)
        self.box.pack_start(self.button1, True, True, 0)

        self.button2 = Gtk.Button(label="  Duplicar  ")
        self.button2.connect("clicked", self.on_button2_clicked)
        self.box.pack_start(self.button2, True, True, 0)

        self.button3 = Gtk.Button(label="  Extender  ")
        self.button3.connect("clicked", self.on_button3_clicked)
        self.box.pack_start(self.button3, True, True, 0)

        self.button4 = Gtk.Button(label="So Segunda Tela")
        self.button4.connect("clicked", self.on_button4_clicked)
        self.box.pack_start(self.button4, True, True, 0)

        self.button5 = Gtk.Button(label="Mais Opções")
        self.button5.connect("clicked", self.on_button5_clicked)
        self.box.pack_start(self.button5, True, True, 0)

    def on_button1_clicked(self, widget):
        os.system("winunix-randr --only-first")
        Gtk.main_quit()

    def on_button2_clicked(self, widget):
        os.system("winunix-randr --duplicate")
        Gtk.main_quit()

    def on_button3_clicked(self, widget):
        os.system("winunix-randr --extend")
        Gtk.main_quit()

    def on_button4_clicked(self, widget):
        os.system("winunix-randr --only-sec")
        Gtk.main_quit()
    
    def on_button5_clicked(self, widget):
        os.system("xfce4-display-settings &")
        Gtk.main_quit()

win = MyWindow()
win.connect("destroy", Gtk.main_quit)
win.show_all()
Gtk.main()
548ad8562937ed1e3c68e69165dce626a114bf3b
<mask token>


class MyWindow(Gtk.Window):

    def __init__(self):
        Gtk.Window.__init__(self, title='Modo de projeção')
        self.resize(600, 100)
        self.set_position(Gtk.WindowPosition.CENTER_ALWAYS)
        self.box = Gtk.Box(spacing=6)
        self.add(self.box)
        self.button1 = Gtk.Button(label='Somente PC')
        self.button1.connect('clicked', self.on_button1_clicked)
        self.box.pack_start(self.button1, True, True, 0)
        self.button2 = Gtk.Button(label='  Duplicar  ')
        self.button2.connect('clicked', self.on_button2_clicked)
        self.box.pack_start(self.button2, True, True, 0)
        self.button3 = Gtk.Button(label='  Extender  ')
        self.button3.connect('clicked', self.on_button3_clicked)
        self.box.pack_start(self.button3, True, True, 0)
        self.button4 = Gtk.Button(label='So Segunda Tela')
        self.button4.connect('clicked', self.on_button4_clicked)
        self.box.pack_start(self.button4, True, True, 0)
        self.button5 = Gtk.Button(label='Mais Opções')
        self.button5.connect('clicked', self.on_button5_clicked)
        self.box.pack_start(self.button5, True, True, 0)

    def on_button1_clicked(self, widget):
        os.system('winunix-randr --only-first')
        Gtk.main_quit()
    <mask token>

    def on_button3_clicked(self, widget):
        os.system('winunix-randr --extend')
        Gtk.main_quit()

    def on_button4_clicked(self, widget):
        os.system('winunix-randr --only-sec')
        Gtk.main_quit()

    def on_button5_clicked(self, widget):
        os.system('xfce4-display-settings &')
        Gtk.main_quit()


<mask token>

<mask token>


class MyWindow(Gtk.Window):

    def __init__(self):
        Gtk.Window.__init__(self, title='Modo de projeção')
        self.resize(600, 100)
        self.set_position(Gtk.WindowPosition.CENTER_ALWAYS)
        self.box = Gtk.Box(spacing=6)
        self.add(self.box)
        self.button1 = Gtk.Button(label='Somente PC')
        self.button1.connect('clicked', self.on_button1_clicked)
        self.box.pack_start(self.button1, True, True, 0)
        self.button2 = Gtk.Button(label='  Duplicar  ')
        self.button2.connect('clicked', self.on_button2_clicked)
        self.box.pack_start(self.button2, True, True, 0)
        self.button3 = Gtk.Button(label='  Extender  ')
        self.button3.connect('clicked', self.on_button3_clicked)
        self.box.pack_start(self.button3, True, True, 0)
        self.button4 = Gtk.Button(label='So Segunda Tela')
        self.button4.connect('clicked', self.on_button4_clicked)
        self.box.pack_start(self.button4, True, True, 0)
        self.button5 = Gtk.Button(label='Mais Opções')
        self.button5.connect('clicked', self.on_button5_clicked)
        self.box.pack_start(self.button5, True, True, 0)

    def on_button1_clicked(self, widget):
        os.system('winunix-randr --only-first')
        Gtk.main_quit()

    def on_button2_clicked(self, widget):
        os.system('winunix-randr --duplicate')
        Gtk.main_quit()

    def on_button3_clicked(self, widget):
        os.system('winunix-randr --extend')
        Gtk.main_quit()

    def on_button4_clicked(self, widget):
        os.system('winunix-randr --only-sec')
        Gtk.main_quit()

    def on_button5_clicked(self, widget):
        os.system('xfce4-display-settings &')
        Gtk.main_quit()


<mask token>

<mask token>
gi.require_version('Gtk', '3.0')
<mask token>


class MyWindow(Gtk.Window):

    def __init__(self):
        Gtk.Window.__init__(self, title='Modo de projeção')
        self.resize(600, 100)
        self.set_position(Gtk.WindowPosition.CENTER_ALWAYS)
        self.box = Gtk.Box(spacing=6)
        self.add(self.box)
        self.button1 = Gtk.Button(label='Somente PC')
        self.button1.connect('clicked', self.on_button1_clicked)
        self.box.pack_start(self.button1, True, True, 0)
        self.button2 = Gtk.Button(label='  Duplicar  ')
        self.button2.connect('clicked', self.on_button2_clicked)
        self.box.pack_start(self.button2, True, True, 0)
        self.button3 = Gtk.Button(label='  Extender  ')
        self.button3.connect('clicked', self.on_button3_clicked)
        self.box.pack_start(self.button3, True, True, 0)
        self.button4 = Gtk.Button(label='So Segunda Tela')
        self.button4.connect('clicked', self.on_button4_clicked)
        self.box.pack_start(self.button4, True, True, 0)
        self.button5 = Gtk.Button(label='Mais Opções')
        self.button5.connect('clicked', self.on_button5_clicked)
        self.box.pack_start(self.button5, True, True, 0)

    def on_button1_clicked(self, widget):
        os.system('winunix-randr --only-first')
        Gtk.main_quit()

    def on_button2_clicked(self, widget):
        os.system('winunix-randr --duplicate')
        Gtk.main_quit()

    def on_button3_clicked(self, widget):
        os.system('winunix-randr --extend')
        Gtk.main_quit()

    def on_button4_clicked(self, widget):
        os.system('winunix-randr --only-sec')
        Gtk.main_quit()

    def on_button5_clicked(self, widget):
        os.system('xfce4-display-settings &')
        Gtk.main_quit()


win = MyWindow()
win.connect('destroy', Gtk.main_quit)
win.show_all()
Gtk.main()

import gi, os
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk


class MyWindow(Gtk.Window):

    def __init__(self):
        Gtk.Window.__init__(self, title='Modo de projeção')
        self.resize(600, 100)
        self.set_position(Gtk.WindowPosition.CENTER_ALWAYS)
        self.box = Gtk.Box(spacing=6)
        self.add(self.box)
        self.button1 = Gtk.Button(label='Somente PC')
        self.button1.connect('clicked', self.on_button1_clicked)
        self.box.pack_start(self.button1, True, True, 0)
        self.button2 = Gtk.Button(label='  Duplicar  ')
        self.button2.connect('clicked', self.on_button2_clicked)
        self.box.pack_start(self.button2, True, True, 0)
        self.button3 = Gtk.Button(label='  Extender  ')
        self.button3.connect('clicked', self.on_button3_clicked)
        self.box.pack_start(self.button3, True, True, 0)
        self.button4 = Gtk.Button(label='So Segunda Tela')
        self.button4.connect('clicked', self.on_button4_clicked)
        self.box.pack_start(self.button4, True, True, 0)
        self.button5 = Gtk.Button(label='Mais Opções')
        self.button5.connect('clicked', self.on_button5_clicked)
        self.box.pack_start(self.button5, True, True, 0)

    def on_button1_clicked(self, widget):
        os.system('winunix-randr --only-first')
        Gtk.main_quit()

    def on_button2_clicked(self, widget):
        os.system('winunix-randr --duplicate')
        Gtk.main_quit()

    def on_button3_clicked(self, widget):
        os.system('winunix-randr --extend')
        Gtk.main_quit()

    def on_button4_clicked(self, widget):
        os.system('winunix-randr --only-sec')
        Gtk.main_quit()

    def on_button5_clicked(self, widget):
        os.system('xfce4-display-settings &')
        Gtk.main_quit()


win = MyWindow()
win.connect('destroy', Gtk.main_quit)
win.show_all()
Gtk.main()

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

import gi, os
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk

class MyWindow(Gtk.Window):

    def __init__(self):
        Gtk.Window.__init__(self, title="Modo de projeção")

        self.resize(600,100)
        self.set_position(Gtk.WindowPosition.CENTER_ALWAYS)
        self.box = Gtk.Box(spacing=6)
        self.add(self.box)

        self.button1 = Gtk.Button(label="Somente PC")
        self.button1.connect("clicked", self.on_button1_clicked)
        self.box.pack_start(self.button1, True, True, 0)

        self.button2 = Gtk.Button(label="  Duplicar  ")
        self.button2.connect("clicked", self.on_button2_clicked)
        self.box.pack_start(self.button2, True, True, 0)

        self.button3 = Gtk.Button(label="  Extender  ")
        self.button3.connect("clicked", self.on_button3_clicked)
        self.box.pack_start(self.button3, True, True, 0)

        self.button4 = Gtk.Button(label="So Segunda Tela")
        self.button4.connect("clicked", self.on_button4_clicked)
        self.box.pack_start(self.button4, True, True, 0)

        self.button5 = Gtk.Button(label="Mais Opções")
        self.button5.connect("clicked", self.on_button5_clicked)
        self.box.pack_start(self.button5, True, True, 0)

    def on_button1_clicked(self, widget):
        os.system("winunix-randr --only-first")
        Gtk.main_quit()

    def on_button2_clicked(self, widget):
        os.system("winunix-randr --duplicate")
        Gtk.main_quit()

    def on_button3_clicked(self, widget):
        os.system("winunix-randr --extend")
        Gtk.main_quit()

    def on_button4_clicked(self, widget):
        os.system("winunix-randr --only-sec")
        Gtk.main_quit()
    
    def on_button5_clicked(self, widget):
        os.system("xfce4-display-settings &")
        Gtk.main_quit()

win = MyWindow()
win.connect("destroy", Gtk.main_quit)
win.show_all()
Gtk.main()