[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/ might be a good candidate to hold
these 'extra' buttons.

At line 114 in is the 'register' function

To register two more icons, here's the code:

tb =['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/ to hold
this code. This the 'main' module for patient screens.
As above, the code goes at the end of the 'register' function.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]