Skip to content

Instantly share code, notes, and snippets.

@vi3k6i5
Created December 12, 2016 14:18
Show Gist options
  • Save vi3k6i5/3f2091c37e30788b60b690808774bd3a to your computer and use it in GitHub Desktop.
Save vi3k6i5/3f2091c37e30788b60b690808774bd3a to your computer and use it in GitHub Desktop.
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