Okay, folks, I manage to make a very rudimentary GUI for this https://github.com/AlfredoSequeida/fvid/pull/21 version of fvid
import PySimpleGUI as sg
import os
import sys
class MissingArgument(Exception):
pass
layout = [
[sg.Button('Password', key='popup_pass', size=(20, 1))],
[sg.Button('File to de/encode', key='popup_file', size=(20, 1))],
[sg.Radio('Encoding', 1, enable_events=True, default=True, key='R1'), sg.Radio('Decoding',1, enable_events=True, key='R2')],
[sg.Button('Start', key='start', size=(20, 1))],
]
window = sg.Window('Simple fvid GUI', layout, font='a 16')
password = None
line = None
while True: # Event Loop
event, values = window.Read()
if event in [None ,'Exit']:
break
if event == 'popup_pass':
password = sg.popup_get_text('Password', password_char='*')
if event == 'popup_file':
fname = sg.popup_get_file('File to open')
try:
fname2 = os.path.basename(fname)
except:
pass
if event == 'start':
try:
fname = fname + ' '
except:
raise MissingArgument('You need a file to en/decrypt.')
if password:
pwd = '-p ' + password
else:
pwd = ''
part1 = 'python -m fvid -i ' + fname
if values['R1'] == True:
part2 = '-e ' + pwd + ' -o ' + fname2 + '_encoded.mp4'
else:
part2 = '-d ' + pwd
line = part1 + part2
break
if line:
# if sys.platform == 'win32':
# os.system('cls')
# else:
# os.system('clear')
print('Command:', line)
os.system(line)
window.Close()
Issue Analytics
- State:
- Created 3 years ago
- Comments:19 (10 by maintainers)
Top Results From Across the Web
Graphical user interface - Wikipedia
The GUI graphical user interface, is a form of user interface that allows users to interact with electronic devices through graphical icons and...
Read more >Definition of GUI (Graphical User Interface) - Gartner
A graphics-based operating system interface that uses icons, menus and a mouse (to click on the icon or pull down the menus) to...
Read more >What is a GUI (Graphical User Interface)? - Computer Hope
A GUI (graphical user interface) is a system of interactive visual components for computer software. A GUI displays objects that convey ...
Read more >graphical user interface | computing - Britannica
graphical user interface (GUI), a computer program that enables a person to communicate with a computer through the use of symbols, visual metaphors,...
Read more >What is GUI (graphical user interface)? - TechTarget
A GUI (usually pronounced GOO-ee) is a graphical (rather than purely textual) user interface to a computer. As you read this, you are...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@AlfredoSequeida @dobrosketchkun I’d like to build on this PySimpleGUI for 1.1.0, and we can change to a different GUI library if needed for 1.2.0 or 2.0.0, is that okay?
Sounds nice