Python Forum
How to compile all relevant code and then execute the program
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to compile all relevant code and then execute the program
#1
I'm creating a program that will require using buttons to travel to different menus, but I'm not sure if I would put all of this code in one file or if I would create each component as a separate file or folder. Any idea on how I'd go about this?
Reply
#2
Usually beginners tend to put their code in one file, and as they learn the reason for organization, expand their latest codings to multiple modules, classes, etc.
Recommended Tutorials:
Reply
#3
There is no requirement to use multiple files if you don't want to, so do what makes sense to you. Other languages (such as Java) force you to use different files, so your preference likely depends on your background.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Is the book "automate the boring stuff" still relevant? Pyrathon 1 1,110 Oct-25-2022, 03:58 PM
Last Post: rob101
  Do I have to download and install Python if I want to compile my code online? bld 2 2,097 Jul-26-2020, 09:57 PM
Last Post: snippsat
  Trying to make a shortcut key to execute program 357mag 1 1,815 Apr-12-2019, 08:36 PM
Last Post: Yoriz
  Can a python program execute an action on another software program? lex 4 3,959 Jan-26-2018, 03:10 PM
Last Post: buran
  program to code: log results of a command Skaperen 0 2,017 Sep-20-2017, 03:37 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

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