Refactor the honk
4
.gitignore
vendored
|
@ -1,4 +1,4 @@
|
||||||
.idea
|
.idea
|
||||||
venv
|
venv
|
||||||
ahk/emoji.ahk
|
private
|
||||||
catalogue.py
|
__pycache__
|
||||||
|
|
|
@ -2,10 +2,8 @@
|
||||||
# Name: calculator v1.2 - decimal point added
|
# Name: calculator v1.2 - decimal point added
|
||||||
# Purpose: calculator using TKinter
|
# Purpose: calculator using TKinter
|
||||||
#
|
#
|
||||||
# Author: L Jacob
|
|
||||||
#
|
#
|
||||||
# Created: 23/07/2015
|
# Created: 23/07/2015
|
||||||
# Copyright: (c) L Jacob 2015
|
|
||||||
# Licence: <your licence>
|
# Licence: <your licence>
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
from tkinter import *
|
from tkinter import *
|
|
@ -48,7 +48,7 @@ def updateDisplay():
|
||||||
pets = { 'cats': 0, 'dogs': 0, 'hamsters': 0 }
|
pets = { 'cats': 0, 'dogs': 0, 'hamsters': 0 }
|
||||||
|
|
||||||
window = Tk()#create the window#
|
window = Tk()#create the window#
|
||||||
window.title("Jacob's")
|
window.title("Newt's")
|
||||||
# Code to add widgets will go here...
|
# Code to add widgets will go here...
|
||||||
##Setup frames##
|
##Setup frames##
|
||||||
topframe = Frame(window)
|
topframe = Frame(window)
|
Before Width: | Height: | Size: 292 B After Width: | Height: | Size: 292 B |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 333 B After Width: | Height: | Size: 333 B |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 589 KiB After Width: | Height: | Size: 589 KiB |
Before Width: | Height: | Size: 202 KiB After Width: | Height: | Size: 202 KiB |
Before Width: | Height: | Size: 299 KiB After Width: | Height: | Size: 299 KiB |
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
Before Width: | Height: | Size: 359 KiB After Width: | Height: | Size: 359 KiB |
Before Width: | Height: | Size: 209 KiB After Width: | Height: | Size: 209 KiB |
Before Width: | Height: | Size: 148 KiB After Width: | Height: | Size: 148 KiB |
Before Width: | Height: | Size: 210 KiB After Width: | Height: | Size: 210 KiB |
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 102 KiB |
Before Width: | Height: | Size: 257 KiB After Width: | Height: | Size: 257 KiB |
Before Width: | Height: | Size: 442 KiB After Width: | Height: | Size: 442 KiB |
|
@ -1,6 +1,6 @@
|
||||||
name = input('What is your name?')
|
name = input('What is your name?')
|
||||||
|
|
||||||
if (str.lower(name) == 'jacob'):
|
if (str.lower(name) == 'newt'):
|
||||||
print('You\'re cool!')
|
print('You\'re cool!')
|
||||||
else:
|
else:
|
||||||
print('Nice to meet you!')
|
print('Nice to meet you!')
|
|
@ -0,0 +1,2 @@
|
||||||
|
Name: newt
|
||||||
|
Quiz result: 3/3
|
|
@ -0,0 +1 @@
|
||||||
|
Name: John DoeGender: MaleForm: 9AA1
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |