gnumed-devel
[Top][All Lists]
Advanced

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

[Fwd: Re: [Gnumed-devel] Attn Ian: re LIstbook in gnuMed 'terry']


From: catmat
Subject: [Fwd: Re: [Gnumed-devel] Attn Ian: re LIstbook in gnuMed 'terry']
Date: Wed, 16 Mar 2005 11:21:14 +1100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041231


--- Begin Message --- Subject: Re: [Gnumed-devel] Attn Ian: re LIstbook in gnuMed 'terry' Date: Wed, 16 Mar 2005 11:19:46 +1100 User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041231
Richard Terry wrote:

Ian.

[PANIC] (gnumed.py:address@hidden): PyAssertionError: C++ assertion "bitmap.GetWidth() == m_width && bitmap.GetHeight() == m_height" failed in ../src/generic/imaglist.cpp(74): invalid bitmap size in wxImageList: this might work on this platform but definitely won't under Windows.<#10-0x0A-lf>

Ok, This is what happened previously, So now won't load. I've struck this heaps of times under wx25. Seems to be more sensitive about the way it handles bitmap image size.

I'll try and track the code down in the main gnuMed modules today to see exactly where it is crashing, but if you find out first please mail me.

Thanks

Richard
it tries to set png_filename=../bitmaps/default.png
in gmRichardSpace.py
so I substituted default.png to any_body2.png
and it seemed to work.

In order to get the RichardSpace client to run,
I used the config editor in HorstSpace to do as suggested ( change
windows/layout/  to 'terry' )
and also changed RichardSpace/plugins  from the list
of non-loadable gmGP plugins to 'Gnumed.wxpython.gmDemographics.Demographics'
which is the default parameter in RichardSpace.py
In order to change it back, I had to do a sql update on the relevant cfg_string row from 'terry' to 'status_quo' , as the config editor wasn't loaded
in RichardSpace.

The PastHistoryPanel I was able to get to display with a little tweaking,
but there seems to be a event deadlock when I try to add the EMRBrowser
to Richard space layout.

the RichardSpace layout loader expects panels which accept just 2 parameters,
self  and parent,
so if you change the gmConfigRegistry constructor as below,

RCS file: /cvsroot/gnumed/gnumed/gnumed/client/wxpython/gui/gmConfigRegistry.py,v
retrieving revision 1.27
diff -r1.27 gmConfigRegistry.py
21a22
>
371c372,373
<       def __init__(self, parent, aUser,aWorkplace, plugin = 1):
---
>
> def __init__(self, parent, aUser=gmWhoAmI.cWhoAmI().get_db_account(),aWorkplace=gmWhoAmI.cWhoAmI().get_workplace(), plugin = 1):

you can use HorstSpace to setup a RichardSpace that has a configEditor
inorder to switch back to horstSpace via the gui

by setting terry_layout/plugins
to
Gnumed.wxpython.gmDemographics.Demographics
Gnumed.wxpython.gui.gmConfigRegistry.gmConfigEditorPanel

2 apps for the price of none!

Gnumed really is a fine emr app, if you look over it with a magnifying glass,
and compare it to the other open source emrs.













PNG image


--- End Message ---

reply via email to

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