Note that there are some explanatory texts on larger screens.

plurals
  1. POPython - Application Logic
    text
    copied!<p>i am making an application that has GUI and some classes. I ran into a problem of getting an idea for the logic.</p> <h2>here is a brief description of the program:</h2> <p>Structure: 3 modules Module 1 - <strong>dataPreparation.py</strong> -responsible for string processing - made of several classes and methods that receive PATH to directory, collect all files in a LIST, after that for each file based on type of file name it sorts it out to appropriate categories that can be accessed through class instances.</p> <p>Module 2 - <strong>gui.py</strong> - Responsible for GUI. It crates a simple GUi-layout that offer BROWSE button (to get the PATH), QUIT button to exit application, LISTBOX that lists subfolders from the PATH, and BATCH button that must execute the main processor.</p> <p>Module 3 - <strong>vntProcessor.py</strong> - Responsible for processing of collected data. This module is based of an API of another application. It receives the values from the BATCH-button and invokes specific methods based on sorting that was performed using MODULE 1.</p> <hr> <p>So, here is the logic problem that i encountered, and i wanted to ask what is the best way to handle it.</p> <hr> <p>My approach:</p> <p>I crated <strong>scene7_vntAssembler.py</strong> .</p> <p>This file imports <strong>Module 1(dataSorting), Module 2(GUI), Module 3(Processor)</strong></p> <p>i create an instance of GUI and call it to start interface ( have a window open)</p> <p>in the interface, i browse for specific folder, so my PATH variable is set. my list box is populated with subfolders.</p> <p>my next step should be to press the BATCH folder and forward all of the values (PATH and ARRAY of SUBFOLDERS) to my Module 3 (processor).</p> <p>Problem: I cannot figure out the way to do that. How to pass the PATH and SUBFOLDER-LIST to module 3? and invoke operations on collected data?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload