G
G
Greowe2015-12-14 23:17:11
Python
Greowe, 2015-12-14 23:17:11

How to place requests correctly, in gui or in a separate file?

There is a simple gui, in which, by clicking on lines (10-15 pieces), queries will be executed in the database.
What is the correct way to do this: write all requests to a file with gui or create a separate file, where to enter all requests as functions and then call them?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
akarin, 2015-12-14
@greowe

According to the Orthodox, through imports of course. And the modular concept looks pretty good for further expansion of the project.

A
Anton Khmyrov, 2015-12-15
@vivcogit

If I am sure that there will be no project expansion and the number / size of requests is not large, then I would leave the requests in the GUI class, and not create a separate class for three requests, four lines each. And if there are a lot of requests or they are large in themselves, then only in a separate class

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question