[Top][All Lists]

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

Re: [Gnumed-devel] check if data were changed - how?

From: Karsten Hilbert
Subject: Re: [Gnumed-devel] check if data were changed - how?
Date: Tue, 19 Aug 2008 11:39:54 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

On Tue, Aug 19, 2008 at 03:58:47AM +0200, Jerzy Luszawski wrote:

> As I'm new in Python, could someone explain this:
> I want to ask user for confirmation if he clicks "cancel" but has changed and 
> unsaved data.
> How to check if data in any field inside a wx.Panel was edited to avoid 
> asking if nothing was changed?

You need to loop over the widgets in the wx.Panel which can
contain new data. Get their current data. Compare that to a
copy of the "old" data.

GPG key ID E4071346 @
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346

reply via email to

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