473,406 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

update or refresh a Listbox widget

Hello!

Is there a function to update/refresh a listbox widget.
My one is connected to a database and after a change of the database I would
like the listbox to be updated.

Thank you for your help!
Arne
Apr 2 '06 #1
2 10122
Arne Meissner wrote:
Is there a function to update/refresh a listbox widget.
My one is connected to a database and after a change of the database I would
like the listbox to be updated.


Tkinter?

the quickest way is to do:

w.delete(0, END)
w.insert(0, *data)

where w is the widget and data is a list (or other sequence) containing
the new data.

</F>

Apr 2 '06 #2
it might be very slow when the data is big...

Apr 3 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: N. Graves | last post by:
Hello... thank you for your time. I have a form that has a List box of equipotent records and a sub form that will show the data of the equipment select from the list box. Is it possible to...
6
by: Bernie Hunt | last post by:
I have a simple app that grabs records from a database and steps through them processing each record. I have three text fields on the form to give the user feedback on the progress. With each...
3
by: Bernard Lebel | last post by:
Hello, Is there an option or a way to allow the selection of multiple entries in the Listbox widget? I could not find any, and would like to allow the end user to select multiple entries. ...
1
by: Riun | last post by:
My Main form acts as a Menu. It has 3 CmdButtons which directs to 3 Forms (Form 1, Form 2, Form 3). Form 1 also directs to the next, etc. My problem is that when I Click on the CmdButton that...
5
by: rsteph | last post by:
I've got a list box that has about 6-7 columns with information, pulled from a table. When you click on a row in the list box it displays all the information in a series of text boxes, so that the...
7
by: Randy | last post by:
Hi, I've got a listbox on a form that gets updated by opening another form for data entry. Once the user enters the new item name and clicks "accept", the data entry form closes and the original...
2
by: Wisher | last post by:
I can't update a listbox from other class with it's own thread. My code: The main class: <....> public partial class mainForm : Form { <....> private delegate void...
4
by: Azvareth | last post by:
Hi! I'm new here but I need an answer to a question: I have a form, this form has details about products to sell, in the form header I have added a button to import xmldata containing a...
3
by: Kevin Woods | last post by:
The row source referes to a named area on an excel worksheet. The user form displays a list box using this row sources. From the user form changes are made to the named area on the excel worksheet....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.