How to add refresh button in wxpython

I have a program that opens up and does stuff, and finally gives me result in
the listctrl. Now if i want to refresh it so that all rows of listctrl get
vanished to get the result for some other input. How to do that?

···

--
View this message in context: http://wxpython-users.1045709.n5.nabble.com/How-to-add-refresh-button-in-wxpython-tp5727329.html
Sent from the wxPython-users mailing list archive at Nabble.com.

There is listctrl.ClearAll() but that also removes the headers. And there is listctrl.DeleteAllItems().
Not what you need.

···

On Thu, Jun 22, 2017 at 1:38 AM, himanshu hpareek61@gmail.com wrote:

I have a program that opens up and does stuff, and finally gives me result in

the listctrl. Now if i want to refresh it so that all rows of listctrl get

vanished to get the result for some other input. How to do that?

View this message in context: http://wxpython-users.1045709.n5.nabble.com/How-to-add-refresh-button-in-wxpython-tp5727329.html

Sent from the wxPython-users mailing list archive at Nabble.com.

You received this message because you are subscribed to the Google Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Why not ? Sounds just right to me ?

Karsten

···

On Mon, Jun 26, 2017 at 01:35:06PM -0700, John Fabiani wrote:

On Thu, Jun 22, 2017 at 1:38 AM, himanshu <hpareek61@gmail.com> wrote:

Now if i want to refresh it so that all rows of listctrl get
vanished to get the result for some other input. How to do that?

And there is listctrl.DeleteAllItems().
Not what you need.

--
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

yes exacly! That worked for me

···

On 27 June 2017 at 02:05, John Fabiani [via wxPython-users] <[hidden email]> wrote:

There is listctrl.ClearAll() but that also removes the headers. And there is listctrl.DeleteAllItems().
Not what you need.

If you reply to this email, your message will be added to the discussion below:

http://wxpython-users.1045709.n5.nabble.com/How-to-add-refresh-button-in-wxpython-tp5727329p5727358.html

To unsubscribe from How to add refresh button in wxpython, click here.

  [NAML](http://wxpython-users.1045709.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml)

You received this message because you are subscribed to the Google Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].

For more options, visit https://groups.google.com/d/optout.


Himanshu pareek

Applied physics Department

Sardar Vallabhbhai National Institute of Technology, Surat.

Contact No.- 8437385593

On Thu, Jun 22, 2017 at 1:38 AM, himanshu <[hidden email]> wrote:

I have a program that opens up and does stuff, and finally gives me result in

the listctrl. Now if i want to refresh it so that all rows of listctrl get

vanished to get the result for some other input. How to do that?

View this message in context: http://wxpython-users.1045709.n5.nabble.com/How-to-add-refresh-button-in-wxpython-tp5727329.html

Sent from the wxPython-users mailing list archive at Nabble.com.

You received this message because you are subscribed to the Google Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].

For more options, visit https://groups.google.com/d/optout.