Commit 38994a51 authored by Jonathan Carter's avatar Jonathan Carter
Browse files

Add hashbang

parent 2f5dbd8f
#!/usr/bin/env python3
#!/usr/bin/python
# Runs on python2 and python3
import sys
import pygame
import time
from subprocess import run
import os
pygame.init()
......@@ -15,7 +15,7 @@ if os.environ['DISPLAY'] == "":
INITIAL_SCREEN_HEIGHT=0
else:
# Run in a window under X
INITIAL_SCREEN_WIDTH=1377
INITIAL_SCREEN_WIDTH=1360
INITIAL_SCREEN_HEIGHT=768
size = width, height = INITIAL_SCREEN_WIDTH, INITIAL_SCREEN_HEIGHT
......@@ -27,6 +27,7 @@ grey = 40, 40, 40
pygame.display.set_caption('md5sumchecker')
if os.environ['DISPLAY'] == "":
screen = pygame.display.set_mode((size), pygame.FULLSCREEN)
pygame.mouse.set_visible(False)
else:
screen = pygame.display.set_mode((size), pygame.NOFRAME)
screen.fill(grey)
......@@ -34,9 +35,8 @@ screen.fill(grey)
SCREEN_WIDTH, SCREEN_HEIGHT = pygame.display.get_surface().get_size()
# Load images
usbimg = pygame.image.load('usb.png')
logoimg = pygame.image.load('aims-desktop.png')
usbimg = pygame.image.load('/usr/share/md5sumchecker/usb.png')
logoimg = pygame.image.load('/usr/share/md5sumchecker/aims-desktop.png')
def clear_screen():
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment