I am in an online python class and am failing badly. I am not sure where
the problem is here but any insight would be great.
def main():
while (True):
allowed = int(input("Please enter minutes allowed between 100 and
700: "))
used = int(input("How many minutes were used: "))
leechau wrote:
> I wrote module1 in package1, and want to use a method named 'method1' in
> module1, the caller(test.py) is like this:
>
> import package1
> package1.module1.method1()
[...]
> When i run test.py, the output is:
> AttributeError: 'module' object has no attribute 'module1'
> File "e:
I wrote module1 in package1, and want to use a method named 'method1' in
module1, the caller(test.py) is like this:
import package1
package1.module1.method1()
module1.py is like this:
def method1():
print 'method1 run!'
The filesystem structure is:
test.py
package1
|__ __init__.py
|__ m
On 4/7/2011 2:45 PM Ben Teeuwen said...
Then I added this to setup.py:
#!/usr/bin/python
The normal way to run setup like this is:
python setup.py install
setup.py typically installs based on the environment your target python
version provides. You can have multiple python versions insta
Hi everyone,
I'm a total newbie giving his best shot at visualising local educational
institution's faculty budget (over 60 million) to stir up some healthy
democratic debate, by trying to adapt the code from
http://wheredoesmymoneygo.org/getting-started/. Its open source, so I'm trying
out h
"The Green Tea Leaf" wrote
I suddenly thought about one thing that I tested and my
guess is that the window needs to refresh to show the label
Thats a common issue with GUIs.
You can force a refresh in Tk with the update() method.
HTH,
--
Alan Gauld
Author of the Learn to Program web
On Wed, Apr 6, 2011 at 15:35, Peter Otten <__pete...@web.de> wrote:
>> Unfortunately, it doesn't work. I can see the label flashing when I
>> press the button but it's not visible unless I press the button again.
>
> I don't understand that sentence. If you press the button the label should
> disap
"Ratna Banjara" wrote
In windows we should write
=>import tkinter
while in linux, we should write
=>import Tkinter
The difference is not the Operating System but the Python version.
Version 3 has many incompatibilities with version 2. This is one
of them so it looks like you have v3 on W