gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnumed-devel] pregnancy calc - few little tweaks


From: Michael Bonert
Subject: [Gnumed-devel] pregnancy calc - few little tweaks
Date: Thu, 23 Jan 2003 02:41:53 -0500 (EST)

Hi Everyone:

I found a little quirk in the Pregnancy Calculator.
It appears that wxPython arbitrarily chooses the
time 5 AM if you ask it pick a day off the calendar.

This resulted in an error in the gestation calculation
if you activated the pregnancy calculator between 12AM
and 5AM... not really a problem because I don't imagine
one usually sees patients at those hours--but I fixed it
anyway and made sure the rounding works for future LNMP
dates.

I also got rid of the pop-up warning about the selected
LNMP being in the future.  What I did to replace it is:
change the static text above the top calendar to read
'Future LNMP' if the gestation time is less than zero.
Give it a try.  I hope you think it is an improvement.
If you have an idea how to code more elegantly... I'd much
appreciate it if you could show me/give me hints.  Currently 
the code overlays text to get the spacing I want---it's not 
coding I'm particularly proud of.  The problem I had is I 
didn't manage to figure-out how to grab an object --once 
it has been added to a wxBoxSizer object-- so I can then
modify it.

Michael






reply via email to

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