473,671 Members | 2,525 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hyperlink in wx.Grid cell?

2 New Member
I want to put a clickable hyperlink in a wx.Grid's cell. When I click on it, I'd like to call some function (e.g.

def onCellClicked(s elf, event):
# Do something here to launch a browser to go to the URL...


I can't seem to find how to embed a clickable hyperlink in a grid's cell. Is this even possible?
Feb 18 '12 #1
3 2767
bvdet
2,851 Recognized Expert Moderator Specialist
In Tkinter you can bind an event (such as "ButtonRelease" ) to a callback function using widget method bind(). You would do something similar in wxPython.
Feb 18 '12 #2
zipper114
2 New Member
Thanks bvdet, but it's not the binding of an event I'm interested in. I am hoping I can put a hyperlink in a grid cell and have it "just work". This certainly seems like something that should be doable, but I can't seem to find out how.
Feb 18 '12 #3
bvdet
2,851 Recognized Expert Moderator Specialist
Clicking on a cell is an event. Maybe you could create your own "custom" event.
Feb 18 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
3515
by: mefloyd | last post by:
Hello, I'd like to outline the current cell in an MSFlexGrid control with a certain color and line thickness. I thought of putting a shape control on the form and positioning it over the cell, but the shape control is always behind the grid (and therefore hidden). Does anyone have any ideas about how to do something like this? Also, do you know of any grid controls that allow in-cell editing?
2
7105
by: Mohammed Abdel-Razzak | last post by:
dir sir I have a problem with the data gri I want to get the data in the selected cell and store it in a strin How can I do that??! thanks si Mohammed
1
1279
by: Red | last post by:
I have a grid that is bound to a dataset. The dataset is the result a query from an sql db. In the sql proc i concatenate the address. I put carraige returns where appropriate (ie Address1 CR Address2). The web grid seems to ignore my carraige returns. How can I make the carraige returns be accepted?
0
1045
by: amcniw | last post by:
I am creating a hyperlink in a grid cell in the Infragistics InitializeRow event. When the user clicks on that cell they are sent to a new page but I also need a postback so that I can save user-input data to the database that may have changed on the grid and other controls before moving to the next page. How can this be done?
1
1411
by: andrewcw | last post by:
OK - neither of these two ideas work to return the cell row/column correctly. Why ? - CurrentCell returns different numbers for the same column when I go back and forth bewteen columns. The HitInfo is just returning type ="Caption", not "Cell". Please provide me some working sample code or tell me how to fix either of thsee types ! .ToString(); InfoDisplay(foo); } else
0
1125
by: ariesc | last post by:
I upgraded from .NET 2002 to .NET 2003 and found one weird things on the LEAVE / ENTER events within a datagrid. I added handler to each textbox of a datagrid, then handle the ENTER/LEAVE events. The ENETER/LEAVE events used to work normally with all arrows keys in 2002 version. Just after upgraded to 2003: 1. up/down key on same column DON'T fire enter/leave! 2. READONLY on column fire events, but when editable, events not fire 3....
0
1336
by: AdrEsqu | last post by:
Can anybody show me how to display a bitmap impage in a datagrid cell? Code: grid.AddNewRow() GridCell cell = grid.AddNewCell(); cell.Text = ???????????????
1
4155
by: Kiran | last post by:
Hello All, I created a grid, where I register events every time the user changes an existing value inside the grid control. Right now, I am using the event: EVT_GRID_CELL_CHANGE. However, I realized that I need to register that same kind of event even if the user doesnt change the value, but just selects and then deselects. I tried creating my own custom event, where i check to see if the editor is activated and then deactivated, and if...
2
1487
by: leosuth | last post by:
I have a DataGridView control, and I need some code to implement a function where a user left-clicks on a specific cell and a context-menu is displayed with it top-lef corner in the centre of the clicked cell - the left-click should also select the row itself.
2
984
by: ssknov | last post by:
hi all I have a grid. when a the grids cell value is clicked its whole datas (other remaining fields of that record)should be displayed in textboxes. I had already populated the datagrid with dataset. giv me tip how to do this Thanks in advance.
0
8400
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
8924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8823
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8602
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8672
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
7441
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
6234
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
4227
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...
2
2058
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.