So sorry, the progress dialog class code can be found properly spaced at
https://gist.github.com/raraoz/6084475
El 25/07/13 19:47, Ricardo Aráoz escribió:
Sorry about the format, corrected below.
-------- Mensaje original --------
Asunto: Progress dialog
Fecha: Thu, 25 Jul 2013 19:40:01 -0300
De: Ricardo Aráoz <[email protected]>
A: Dabo Users list <[email protected]>
Hi,
I would like to modify the following progress dialog which is running ok.
It is called :
dlg = Progreso(self)
dlg.show()
And it call a process (lectora.leerTjtas()) that communicates with a
device through a serial interface and retrieves some data. It sends to
this process a callback method (informarProgreso()) that will update
the dialog.
Two things I would like to change:
i) I would like that the dialog shows itself upon creation (now I have
to call dlg.show()). I tried with self.show() in the afterInitAll()
but raises an error.
ii) I would like to get the call to lectora.leerTjtas() outside of the
dialog class.
i.e. I would like to call it like this:
dlg = Progreso(self)
dlg.Gauge.Range = 1000
self.lectora.leerTjtas(dlg.informarProgreso)
Or something similar. Is any of this possible?
Thanks
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]