Example #1
0
def SDL_fixed_window_show():
    Window.show()
    if SDL_needfix:
        # doing this on >= 2.0.9 causes problems (lose Window focus)
        # not doing this on lesser versions ignores Window.show() altogether
        Window.maximize()
        Window.restore()
Example #2
0
    def process_IN_CREATE(self, event):
        for filter in path_filter:
            if (re.match(filter, event.pathname)):
                return

        print("File created %s !" % event.pathname)
        repo.index.add([event.pathname])
        Window.restore()
Example #3
0
 def toggle_fullscreen(self, *args):
     """ Enable or disable fullscreen, and change icon"""
     # Window fullscreen doesn't work with two displays
     if self.toolbar.right_action_items[1][0] == 'fullscreen-exit':
         Window.restore()
         icon = 'fullscreen'
     else:
         Window.maximize()
         icon = 'fullscreen-exit'
     self.toolbar.right_action_items[1] = [icon, self.toggle_fullscreen]
Example #4
0
    def force(dt):
        """
        This method keeps window maximized and positioned.
        :param dt: It is for handling callback input.
        :return:
        """

        Window.top = 0
        Window.maximize()
        Window.restore()
Example #5
0
    def toggle_max(btn):
        """Maximize and restore the window"""
        try:
            _ = Window.is_maximized
        except AttributeError:
            Window.is_maximized = False

        if Window.is_maximized:
            Window.restore()
            btn.icon = 'window-maximize'
            Window.is_maximized = False
        else:
            Window.maximize()
            btn.icon = 'window-restore'
            Window.is_maximized = True
Example #6
0
 def restore(self, *_):
     Window.restore()
 def restore_app(self):
     """Restore App window to pre-maximized size."""
     Window.restore()
Example #8
0
from components.LayoutManager import LayoutManager

Config.set('kivy', 'log_level', 'info')
# Config.set('kivy', 'log_level', 'critical')
Config.set('graphics', 'borderless', 0)
Config.set('graphics', 'width', 1080)
Config.set('graphics', 'height', 720)
# Config.set('graphics', 'window_state', 'minimized')
Config.set('graphics', 'window_state', "visible")
Config.set('input', 'mouse', 'mouse,multitouch_on_demand')
Config.write()
kv_lay = Builder.load_file('../data/chill_layout.kv')

Clock.max_iteration = 5000  # określa maksymalną liczbę zagniżdżonych zegarów

Window.restore()

layout_manager = LayoutManager()


class ChillApp(App):
    def build(self):
        self.icon = '../data/graphics/CMDownloader_logo.png'
        self.title = 'Chill Music Downloader'
        return layout_manager.window_manager


if __name__ == '__main__':
    ChillApp().run()
    print('App started')