This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PySimpleGUI as sg | |
# create output element | |
output = sg.Output(size=(50, 15)) | |
# button to initiate text printing | |
button = sg.Button('Print long text', key='-BTN-') | |
# set the layout | |
layout = [[output], [button]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A simple clock demonstration in PySimpleGUI | |
>> YouTube Comments Response << | |
""" | |
import PySimpleGUI as sg | |
from datetime import datetime | |
layout = [[sg.Text(text=datetime.now().strftime('%I:%M:%S'), key='-CLOCK-')]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A quick and dirty search within the contents of a docx file | |
Author: Israel Dryer | |
Modified: 2020-07-21 | |
""" | |
from zipfile import ZipFile | |
# file path | |
doc_path = 'senior_paper.docx' |
NewerOlder