Created
December 12, 2016 14:18
-
-
Save vi3k6i5/3f2091c37e30788b60b690808774bd3a to your computer and use it in GitHub Desktop.
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
from tkinter import* | |
class hunterClass: | |
def BMHunter(self): | |
hunter = Tk() | |
hunter.title("Beast Mastery Gear Worth Calculator") | |
agiString = StringVar() | |
agiText = Label(hunter, text = "Input points of agility:").grid(row = 3, column = 0) | |
self.agiEntry = Entry(hunter, textvariable = agiString).grid(row = 3, column = 1) | |
calculate = Button(hunter, text = "Calculate", command = hunterClass.calculateFun).grid(row = 12, column = 1) | |
def calculateFun(self): | |
agiF = float(self.agiEntry.get()) | |
window = Tk() | |
window.title("Gear Worth Calculator") | |
hunterText = Label(window, text = "Hunter").grid(row = 3, column = 0) | |
hunterBM = Button(window, text = "Beast Mastery", width = 12, command = hunterClass.BMHunter).grid(row = 4, column = 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment