Mailinglist Archive: yast-devel (62 mails)

< Previous Next >
[yast-devel] yast2: added Popup.Feedback()

Hi all,

I have added new method Popup.Feedback() to yast2-3.1.26
(see details in https://github.com/yast/yast-yast2/pull/194)

Basically it's a safe wrapper around ShowFeedback() and ClearFeedback(),
it uses "ensure" block, the popup is automatically closed at the end
(even when an exception is raised in the code).


So instead of

Popup.ShowFeedback("loading FOO", "please wait...")
sleep 10
Popup.ClearFeedback

use

Popup.Feedback("loading FOO", "please wait...") do
sleep 10
end


Enjoy!


--

Ladislav Slez√°k
Appliance department / YaST Developer
Lihovarsk√° 1060/12
190 00 Prague 9 / Czech Republic
tel: +420 284 028 960
lslezak@xxxxxxxx
SUSE
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages