Python Forum
How do you (experienced) do it?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do you (experienced) do it?
#1
Assume the program requires having:
... Task-1: One GUI window to do something.
... Task-2: A second GUI window to do something else.
... Task-3: Code to do something.

A. Would you open a new .py file for each task to get them working.  Then create a master .py file and import the three tasks as functions (or classes).

B. Or just open a master .py file and code tasks 1, 2 and 3?  Using functions or classes is not the real question.  Whether coding all in one .py file as task-1, then task-2, then task-3 is the question.

Being new to Python and coding my first program, I'm in the process of doing it as step-A above to make it easier (and less cluttered) to code each task separately.  But I'm wondering if experienced Python programmers do it as in Step-B.

So how do you do it?
Reply


Messages In This Thread
How do you (experienced) do it? - by Raptor88 - Mar-15-2017, 09:08 PM
RE: How do you (experienced) do it? - by ichabod801 - Mar-15-2017, 09:14 PM
RE: How do you (experienced) do it? - by Raptor88 - Mar-16-2017, 01:59 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Anyone experienced with webkit2png? KipCarter 3 3,157 Mar-23-2020, 03:08 PM
Last Post: KipCarter
  Project Using Python, No Skill, Idea first = Need experienced to show me the path. nefajcito 3 3,994 Apr-22-2017, 09:11 AM
Last Post: nefajcito

Forum Jump:

User Panel Messages

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