[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnumed-devel] extra buttons on patient's toolbar
From: |
Ian Haywood |
Subject: |
[Gnumed-devel] extra buttons on patient's toolbar |
Date: |
Sun, 4 Aug 2002 22:34:08 +1000 (AEST) |
The buttons on the patients toolbar are defined by its various plugins in
wxpython/patient
wxpython/patient/gmGP_ClinicalSummary.py might be a good candidate to hold
these 'extra' buttons.
At line 114 in gmGP_ClinicalSummary.py is the 'register' function
To register two more icons, here's the code:
tb = self.gb['toolbar.Patient'] # get the toolbar for the Patient window
tool1_id = wxNewId ()
tb.AddTool (tool1_id, bitmap_file, shorthelpString= "Save patient")
tool2_id = wxNewId ()
tb.AddTool (tool2_id, bitmap_file, shortHelpString = "Print patient")
Alternatively you could use wxpython/gui/gmPatientWindowManager.py to hold
this code. This the 'main' module for patient screens.
As above, the code goes at the end of the 'register' function.
Ian