473,606 Members | 2,453 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I get more events from a wxListCtrl in a panel?

Hello.

I am working on an application using wxPython that includes a panel
with a wxListCtrl populated with data received from a LAN attached
database.

I want the wxListCtrl panel to be loaded with a small amount of data
initially. When the user moves the vertical scrollbar or press PageUp
or PageDown, I want to load the list view with new data from the
database. I only want to load the wxListCtrl with a subset of the
database data at a time so the list view is responsive and will allow
for handling large databases.

The problem I am having is how to get events from the scrollbars or
the PageUp/PageDown keys, etc. I can get events from selecting items,
etc.

Thanks,
Brian
Jul 18 '05 #1
1 2125
bm****@integria n.com wrote:
Hello.

I am working on an application using wxPython that includes a panel
with a wxListCtrl populated with data received from a LAN attached
database.

I want the wxListCtrl panel to be loaded with a small amount of data
initially. When the user moves the vertical scrollbar or press PageUp
or PageDown, I want to load the list view with new data from the
database. I only want to load the wxListCtrl with a subset of the
database data at a time so the list view is responsive and will allow
for handling large databases.

The problem I am having is how to get events from the scrollbars or
the PageUp/PageDown keys, etc. I can get events from selecting items,
etc.


Use a virtual list control (style wxLC_VIRTUAL) which doesn't contain
any data, but invokes callbacks to retrieve only those records which are
currently visible. See the example in the demo.

David

P.S. for wxPython specific questions, you will probably find a bigger
audience on the wxPython-users list (see
http://www.wxpython.org/maillist.php)

Jul 18 '05 #2

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

Similar topics

1
4420
by: chauhan | last post by:
Hi, I am new to pogramming. I have written a small program which retrieves emails from server, unless all the messages are loaded only then it displays on screen properlely. Whole thing works fine if I use events to activate logMail() after start but I don't know how to activate an event at the start (witout pressing mouse or menu key) as I want this to load messages at the start of the program.
1
4127
by: Mark Carter | last post by:
I would like a wxListCtrl with 3 columns in it. The number of rows in it will vary during run-time. In the first column of each row should be a wxCheckBox, which the user can check or uncheck. Is such an arrangement possible? Any example source code? wxCheckListBox comes close - but not close enough. Unfortunately, it does not derive from wxListCtrl, which contains the function InsertColumn() needed for multiple columns
3
4992
by: Piet | last post by:
Hi there. I am trying to display tabular data in a wxListCtrl. What I get from the script below are only the headers, not the items themselves. The documentation didn´t help me much; instead I was lost in ListItemId´s and different possibilities of inserting items and strings. I am sure the solution is only one step away, but I need somebody to point in the direction. Heres the script: from wxPython.wx import * class...
4
5365
by: Piet | last post by:
Hello. I am working on an XML editor that will not display the xml file as plain text, but will rather work with a combination of a tree view for the main element nodes and some kind of tabular view to view attributes. By this way, the user (i.e. me) will only have the opportunity to change textual contents and attribute values, but neither element nor attribute names. Building the tree view was not a problem, but I haven´t found a good...
0
1598
by: Piet | last post by:
Hello, I am working on a graphical MySQL Frontend written in python/wxPython. The results from a table query are displayed either in a wxGrid or in a wxListCtrl. I would prefer the latter because it underlines the read-only character of the data, but I am not happy with the way the results are displayed. The wxGrid with the results is laid out by the following code: resultsFrame = wxFrame(parent,-1,title) resultsTable =...
2
3502
by: spamlaanbroek | last post by:
The .NET WebBrowser control in the Compact Framework 2.0 is a major headache. Once it takes the focus (e.g. by the user tapping on it) it keeps it and keyboard events are not passed to the form anymore even though KeyPreview is set to true. If there are no other controls on the form we don't get them at all to start with. I added a tiny textbox with same colors as the form so we can at least
0
953
by: matt sib | last post by:
Hi all. I just upgraded to wxpython 2.7 Its way cool. However, in one of my apps, i have embedded a flash activex control. I have had it working great in wxpython 2.6. After i upgraded to 2.7, i stopped receiving events from flash! But whats even weirder is that when i embed the flash activex in a wx.Frame instead of a wx.Panel, i do get the flash events! I am most mystified....does anyone have any idea here?
1
3070
sgeklor
by: sgeklor | last post by:
Dear All, My question refers to how best to organise my mouse events to correctly and efficiently give the effect I want. On my form I have a panel and that panel contains a number of controls. By setting up the MouseOver and MouseOut events for the panel I am able to change the panel's background while the mouse is over the panel. A very simple effect and one that is straightforward to implement. But, when the mouse cursor goes over...
4
2844
by: Jimmy | last post by:
hi, all I'm having a problem with creating custom events in wxpython. I have a class A handling some data processing work and another class B of GUI matter. I need GUI to display information when data in A is updated. I know cutom events in wxpython may work. But I found no material paricularly helpful :(
0
7959
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8310
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6781
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5968
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5466
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3942
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3987
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2451
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1305
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.