hanyuone / Ways-to-NOT-make-money

A basic Python (2.x/3.x) incremental game.
8 stars 3 forks source link

Clicking lotto buy button cause exception #92

Closed joshgit closed 8 years ago

joshgit commented 8 years ago

Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.5/tkinter/init.py", line 1552, in call return self.func(args) File "game.py", line 1173, in lotto money += lottoprice * 4 TypeError: unsupported operand type(s) for : 'StringVar' and 'int'

hanyuone commented 8 years ago

Wait, just a quick question, why did we even have both py2 and py3, @joshgit, @testitem?

bortkiewicz commented 8 years ago

what? (i think) you told me to create version 3.0.7.1

hanyuone commented 8 years ago

No I didn't, @testitem, you said you wanted to build a Py3 version.

bortkiewicz commented 8 years ago

Oh. I built it because that currently both Python 2 and Python 3 are widely used (Python 3.6 is coming out May 15. Today is May 12/13)

joshgit commented 8 years ago

We shouldn't need the py2 version.

bortkiewicz commented 8 years ago

That's insulting to @DerpfacePython

joshgit commented 8 years ago

How so? Most libraries exist for Python 3 now and it's not hard to download and install.

bortkiewicz commented 8 years ago

I guess so.

hanyuone commented 8 years ago

@joshgit Well, why shouldn't we keep Py2?

bortkiewicz commented 8 years ago

Py3 is very similar to Py2 - as well as that, Py3 has some advantages over Py2 (that's just my opinion.)

hanyuone commented 8 years ago

Yeah, you've got a point there, @testitem. Both Pythons have their advantages and disadvantages. We should probably go on webchat and talk about this python2 and python3 stuff.

joshgit commented 8 years ago

No, get rid of Py2!

bortkiewicz commented 8 years ago

We are not getting rid of Py2. (Why? Can't we just merge them into one file using try/except statements??)

hanyuone commented 8 years ago

Yeah, that works.

bortkiewicz commented 8 years ago

Fixed (as of 0.8.0a1 )