Skip to content

Commit

Permalink
Fix fullscreen message boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
aphistic committed Apr 10, 2016
1 parent d054217 commit 5d47847
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions copilot/message.py
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -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 = [
Expand Down

0 comments on commit 5d47847

Please sign in to comment.