Python Forum
Error in a file and problem with ptpython
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error in a file and problem with ptpython
#3
I tried this:
  # Initiates Timer class object
        #t = Timer()
        t = Timer#added
        start_time = t.start()
and the new error is:
Error:
Please input an integer: 145 Traceback (most recent call last): File "big.py", line 226, in <module> new_program() File "big.py", line 42, in new_program load_program() File "big.py", line 71, in load_program start_time = t.start() TypeError: descriptor 'start' of '_timer.Timer' object needs an argument sylvain@sylvain-HP-Laptop-15-bw0xx:~$
Reply


Messages In This Thread
RE: Error in a file and problem with ptpython - by sylas - Aug-25-2018, 06:50 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to handle "History" in ptpython sylas 4 4,945 Oct-07-2018, 11:09 PM
Last Post: Larz60+
  Cannot use functions at the bottom of ptpython sylas 1 2,656 Aug-29-2018, 12:02 PM
Last Post: sylas
  How to correct, save, run with ptpython sylas 17 11,893 Jun-03-2018, 04:48 PM
Last Post: sylas
  ptpython docstring metulburr 4 5,317 Nov-17-2017, 01:36 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020