Please enable JavaScript.
Coggle requires JavaScript to display documents.
Keeping Time, Scheduling Tasks, and Launching Programs ((Launching Other…
Keeping Time, Scheduling Tasks,
and Launching Programs
Project: Super Stopwatch . 338
Step 1: Set Up the Program to Track Times 339
Step 2: Track and Print Lap Times 339
Ideas for Similar Programs 340
Multithreading 347
Passing Arguments to the Thread’s Target Function . 348
Concurrency Issues . 349
Launching Other Programs from Python 352
Passing Command Line Arguments to Popen() 354
Task Scheduler, launchd, and cron . 354
Opening Websites with Python 355
Running Other Python Scripts . 355
Opening Files with Default Applications 355
The time Module . 336
The time.time() Function
The time.sleep() Function . 337
Rounding Numbers . 338
The timedelta Data Type . 342
Pausing Until a Specific Date . 344
Converting datetime Objects into Strings . 344
Converting Strings into datetime Objects . 345
Review of Python’s Time Functions . 346
Project: Multithreaded XKCD Downloader 350
Step 1: Modify the Program to Use a Function . 350
Step 2: Create and Start Threads . 351
Step 3: Wait for All Threads to End 352
Project: Simple Countdown Program 357
Step 1: Count Down . 357
Step 2: Play the Sound File 357
Ideas for Similar Programs 358