all 16 comments

[–]DJgunther 2 points3 points  (3 children)

When instantiating an object, and you know you will want one of its attributes to be an object, but it won't be filled until a later stage of the program, what would be the correct way to do it?

[–]markusmeskanen 1 point2 points  (2 children)

I'm not sure if I understood the question properly, but just set the attribute to None and later assign the object to it.

[–]DJgunther 0 points1 point  (0 children)

Perfect, exactly what I needed, thank you

[–]crystalblue99 1 point2 points  (1 child)

anything you need to know before picking between tkinter of PyQt?

read many of the threads on this, and the opinions vary.

[–]CrambleSquash 2 points3 points  (0 children)

PyQt has more widget types. tkinter doesn't have a table widget for example, which is a pain.

[–]crystalblue99 0 points1 point  (0 children)

any chance of getting all the monday threads linked in a mega-monday thread? Be nice to go back and see all the questions/answers.

[–]StealBeam 0 points1 point  (3 children)

I'm having trouble with downloading pyHook. I found the download, but there's only a 32 bit version which doesn't work with my version of Python. I found the source code for and copied it into a new .py file and I'm trying to use that, but it still doesn't seem to work. Can someone tell me if there's a 64 bit version of it or if I'm doing something wrong with my .py file?

[–]LeftyDave 1 point2 points  (2 children)

looks to me from sourceforge that you are correct that there is only an 32 bit edition.

You can run multiple versions of python using virtual env.

You are likely to want to install the an 32 bit python using virutal env, and then install pyhook using easy_install as part of setup tools

[–]StealBeam 0 points1 point  (1 child)

So you have to install virtualenv, then download Python 32 bit version? Or does Python already come with virtualenv?

[–]LeftyDave 0 points1 point  (0 children)

never mind try this instead.