From 5d4784708480e87afd8405f1b5b41d65d8a12228 Mon Sep 17 00:00:00 2001 From: Erik Davidson Date: Sun, 10 Apr 2016 16:41:55 -0500 Subject: [PATCH] Fix fullscreen message boxes --- copilot/message.py | 11 +++++++++++ setup.py | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/copilot/message.py b/copilot/message.py index 72e4346..919ccb8 100644 --- a/copilot/message.py +++ b/copilot/message.py @@ -7,10 +7,18 @@ class MessageFrame(CopilotBaseFrame): def __init__(self, master, config): super(MessageFrame, self).__init__(master, config) + def _make_full(self, root): + w, h = root.winfo_screenwidth(), root.winfo_screenheight() + root.overrideredirect(1) + root.geometry("%dx%d+0+0" % (w, h)) + class ConfirmFrame(MessageFrame): def __init__(self, master, config): super(ConfirmFrame, self).__init__(master, config) + if config.full_screen: + self._make_full(master) + self.master.grid_rowconfigure(0, weight=1) self.master.grid_rowconfigure(1, weight=1) self.master.grid_columnconfigure(0, weight=1) @@ -62,6 +70,9 @@ class OkFrame(MessageFrame): def __init__(self, master, config): super(OkFrame, self).__init__(master, config) + if config.full_screen: + self._make_full(master) + self.master.grid_rowconfigure(0, weight=1) self.master.grid_rowconfigure(1, weight=1) self.master.grid_columnconfigure(0, weight=1) diff --git a/setup.py b/setup.py index e8c3fb2..11e1fcd 100644 --- a/setup.py +++ b/setup.py @@ -2,12 +2,12 @@ setup( name = 'copilot', packages = ['copilot'], - version = '0.1.8', + version = '0.1.9', description = 'Application to manage files on external USB drives', author = 'Erik Davidson', author_email = 'erik@erikd.org', url = 'https://github.com/aphistic/copilot', - download_url = 'https://github.com/aphistic/copilot/tarball/0.1.8', + download_url = 'https://github.com/aphistic/copilot/tarball/0.1.9', keywords = ['raspberrypi', 'raspberry', 'pi', 'filemanager'], classifiers = [], install_requires = [