Mailing List Archive

Multiple menu-bars and processes under Tk?
Background:
Newbie to programming, who chose Python on a Linux box as the road to
enlightenment.

Problem:
Pharmacokinetic calculations of multiple drugs given to a patient during
an Anesthetic should be displayed in a drugCollectionWindow for easy
overview, simulations and controll of drug infusions.

This drugCollectionWindow would be similair or analog to a filing cabinet
drawer, with multiple "folders" or CalculatorInstances in place. Each
"folder" can be viewed either closed or open. In the closed position, the
appearance is similair to a horisontal menu-bar. One or more of the
horisontal menubars can be expanded to reveal more detail of the
CalculatorInstance. New menu-bars can be added on the fly. The order of
these menu-bars can be changed by the user and are not simply a function
of the sequence that new drugInstances were created.

Each CalculatorInstance would represent a separate pharmacokinetic drug
calculation process that continues regardless whether the "folder" is open
or closed. (And possibly whether the drugCollectionWindow is open or
closed as well.)

A screenshot of the proposed interface: gasnet.med.yale.edu/lamdi/21_lamdi.html

Questions:

1. Is there an existing Python/TK way of doing this under Linux ? I
looked at the PMW, but I could not find an example.

2. Would you suggest to make a separate frame for each
CalculatorInstance? Can new ones be added on the fly?

3. Let's say that the drugCollectionWindow is being closed. Is there a
way that the calculations can be continued and tracking resumed upon
opening another window? I.e. how can the program be designed that each of
the CalculatorInstances is a separate process (less chance of them all
crashing at the same time), but they can all be viewed and controlled from
one single window?

Thank you for your consideration.