This file contains 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 gooeypie as gp | |
def add_new_task(event): | |
"""Adds a new task from when the Enter/Return key is pressed""" | |
if event.key['name'] == 'Return' and new_task_inp.text != "": | |
todo_lst.add_item(new_task_inp.text) | |
new_task_inp.clear() | |
new_task_inp.focus() |
This file contains 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 gooeypie as gp | |
from random import choice | |
nouns = open('words-nouns.txt').read().splitlines() | |
adjectives = open('words-adjectives.txt').read().splitlines() | |
def generate_password(event): | |
"""Generates and displays a new random password""" | |
word1 = choice(adjectives) | |
word2 = choice(nouns + adjectives) |
This file contains 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 string | |
from random import choice | |
import gooeypie as gp | |
default_password_length = 8 | |
app = gp.GooeyPieApp('Password Generator') | |
app.resizable_vertical = False | |
def generate_password(length, letters, digits, symbols): |
This file contains 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 gooeypie as gp | |
import os | |
def add_new_task(event): | |
"""Adds a new task from when the Enter/Return key is pressed""" | |
if event.key['name'] == 'Return' and new_task_inp.text != "": | |
todo_lst.add_item(new_task_inp.text) | |
new_task_inp.clear() | |
new_task_inp.focus() |
This file contains 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 gooeypie as gp | |
import os | |
import json | |
def add_new_task(event): | |
"""Adds a new task from when the Enter/Return key is pressed""" | |
if event.key['name'] == 'Return' and new_task_inp.text != "": | |
todo_lst.add_item(new_task_inp.text) | |
new_task_inp.clear() | |
new_task_inp.focus() |
This file contains 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 gooeypie as gp | |
import os | |
import pickle | |
def add_new_task(event): | |
"""Adds a new task from when the Enter/Return key is pressed""" | |
if event.key['name'] == 'Return' and new_task_inp.text != "": | |
todo_lst.add_item(new_task_inp.text) | |
new_task_inp.clear() | |
new_task_inp.focus() |