[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnumed-devel] Re: extra buttons on patient's toolbar
From: |
richard terry |
Subject: |
[Gnumed-devel] Re: extra buttons on patient's toolbar |
Date: |
Sun, 4 Aug 2002 23:05:49 +1000 |
User-agent: |
KMail/1.4.1 |
Ian,
The save and print icons need to always be on the right most side of the bar
(for right handers) and presumabley the opposite for left handers (anyone put
their left hand up).
There are reasons for this. Visually ones eyes lock quickly onto the print and
save button when needed because they are separated from the rest. When
contained 'within the crowd' it takes the brain another few microseconds for
to register what the eyes have had to search out.
I've done much thinking/onthe ground with GP's discussing and researching of
this and I think it is important.
Is there a mechanism we can add them to the end?
On Sunday 04 August 2002 10:34 pm, you wrote:
> 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
buttons.png
Description: PNG image