From 3969d68545f6fe700f6d703980cfeeaf4422a5cc Mon Sep 17 00:00:00 2001 From: Neal Probert Date: Tue, 23 Mar 2021 09:30:47 -0400 Subject: [PATCH] Added tool for video resolution --- gps_tool/TODO | 9 +++++++++ vid_tool/vid_resol.py | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 gps_tool/TODO create mode 100755 vid_tool/vid_resol.py diff --git a/gps_tool/TODO b/gps_tool/TODO new file mode 100644 index 0000000..50dace4 --- /dev/null +++ b/gps_tool/TODO @@ -0,0 +1,9 @@ + + gps_tool TODO + +Theta labels wind up inside track, not outside. +Use N, NE, E, SE, S, SW, W, NW labels + +Error running on Raspberry Pi (shiboken2 is broken shit) + +Click on point for more info diff --git a/vid_tool/vid_resol.py b/vid_tool/vid_resol.py new file mode 100755 index 0000000..7feb2ad --- /dev/null +++ b/vid_tool/vid_resol.py @@ -0,0 +1,42 @@ +#!/usr/bin/env python3 + +import math +import sys +import socket +import time +import os.path + +from sys import platform as _platform +from time import sleep +from glob import glob +from socket import * +from struct import * + +#print(socket.gethostname()) + +# pillow, thread +if sys.version_info[0] == 3: + print("Python3") + from tkinter import * + from PIL import Image, ImageTk + try: + import _thread + except ImportError: + import _dummy_thread as _thread +else: + print("Python2") + from Tkinter import * + from PIL import Image + try: + import thread as _thread + except ImportError: + import dummy_thread as _thread + +a_lock = _thread.allocate_lock() + +# tkinter root +root = Tk() +root.title('V2V DVI Display') +w, h = root.winfo_screenwidth(), root.winfo_screenheight() +print("Display resolution = ", w, "x", h) +