Hi,
I need to build an interface for a task. Let me summarize how it must
function. I have some collections
I guess part of what would help to have very clear is what exactly is a “collection” in this case? I think the way a user conceives of a concept/entity in your program helps determine what GUI approach you ought to take. Since you say that collections contain database tables, isn’t another way to think about a collection simply a database?
which have several database tables
inside them. The most important part is, I want to be able to open the
content from a file in which it is stored and add or delete
collections at later times. It seems complicated, I know.
It sounds like a database browser, like the SQLite Database Browser.
clarify it, I will talk about my first idea. I can use a label book.
Every label (collection name) chooses a notebook. Notebook contains
tabs that correspond to database tables inside collection. And every
tab contains a grid for table data. That is what has first come to my
mind. But I dont know how to store all this structure in a file and
how to rebuild it for later editing purposes. I need your precious
ideas and suggestions for this task.
I would write this out in words/pseudo-code, and then I think it will become more apparent to you. For example, something like:
-
I need databases, so I need a way to create them in my .py file, probably once a user does some GUI action. Requires understanding my database management system.
-
I need to store a list of the databases on the disk somehow. How? In another “master” database? In a text file?
-
I need a label book, and I will populate it with # of labels = # of databases (“collections”) in the list from point 2.
-
For each of these, I need a standard notebook as the “page” of the labelbook.
-
As I create each notebook, I might as well populate it, too, with the tables from that database.
-
Etc…
Does that help?
Che
···
On Wed, Apr 20, 2011 at 9:45 AM, Shansal sansal.birbas@gmail.com wrote: