473,668 Members | 2,611 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tkinter -- Show Data in an Excel like Read-Only Grid

Hi All,

I am really new to Tk and Tkinter. I googled the web but it was not
mentioned how to build a data grid with Tkinter.

Basically, I want to show an excel like data grid with fixed column
and row headers and sortable columns. But the grids can be read-only.

Can anyone give some hint on implementing this?
Thanks,
beginner

Jul 27 '07 #1
4 17262
On Jul 27, 2:56 pm, beginner <zyzhu2...@gmai l.comwrote:
Hi All,

I am really new to Tk and Tkinter. I googled the web but it was not
mentioned how to build a data grid with Tkinter.

Basically, I want to show an excel like data grid with fixed column
and row headers and sortable columns. But the grids can be read-only.

Can anyone give some hint on implementing this?

Thanks,
beginner
See if tkTable will help
http://tkinter.unpythonic.net/wiki/TkTable
Jul 28 '07 #2
On Jul 27, 11:08 pm, Zentrader <zentrad...@gma il.comwrote:
On Jul 27, 2:56 pm, beginner <zyzhu2...@gmai l.comwrote:
Hi All,
I am really new to Tk and Tkinter. I googled the web but it was not
mentioned how to build a data grid with Tkinter.
Basically, I want to show an excel like data grid with fixed column
and row headers and sortable columns. But the grids can be read-only.
Can anyone give some hint on implementing this?
Thanks,
beginner

See if tkTable will helphttp://tkinter.unpytho nic.net/wiki/TkTable
Thanks for your help.

Jul 28 '07 #3
On Jul 27, 4:56 pm, beginner <zyzhu2...@gmai l.comwrote:
Hi All,

I am really new to Tk and Tkinter. I googled the web but it was not
mentioned how to build a data grid with Tkinter.

Basically, I want to show an excel like data grid with fixed column
and row headers and sortable columns. But the grids can be read-only.

Can anyone give some hint on implementing this?
If tkTable isn't what you're looking for, take a look at wxPython
(http://www.wxpython.org). It's a different widget set and bit of a
higher learning curve than Tkinter, but it has hundreds of widgets for
things like this (wx.Grid).
>
Thanks,
beginner

Jul 28 '07 #4
If you want to only display data in a table format, try
MultiListBox.py . Just download and run for a demo.
http://aspn.activestate.com/ASPN/Coo...n/Recipe/52266

Jul 28 '07 #5

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

Similar topics

3
4926
by: Phil Schmidt | last post by:
I'm trying to make a custom entry widget, as in the code that follows. There are two problems I'm trying to fix: 1) I would like the widget to behave as myEntry.Escape() does now, except that it happens on loss of focus, not when pressing Esc. 2) TABbing between multiple entry fields does undesired things with the selection, and with cursor placement. Can anyone offer any suggestions for how to fix this? I'm attemting to
0
1171
by: Paul Miller | last post by:
I would like to create a widget in Tkinter that has a settable title and cannot be moved outside of its master widget. What I have in mind is similar to what happens when you open a new file in say, Excel; the window containing your application data won't move outside of the main Excel window. I have no idea how to go about this. :) Any help, tips, or pointers (except NULL pointers) would be welcome. Thanks
1
2967
by: syed_saqib_ali | last post by:
Please take a look at and run the code snippet shown below. It creates a canvas with vertical & Horizontal scroll-bars. If you shrink the window to smaller than the area of the canvas, the scroll-bars work as advertised. That's great. However, if you click the Left Mouse button, it calls code which expands the width of the canvas by 100 pixels. The area being viewed expands correspondingly..... BUT I DON'T WANT IT TO!!
6
3200
by: gregarican | last post by:
I have a Python UDP listener socket that waits for incoming data. The socket runs as an endless loop. I would like to pop the incoming data into an existing Tkinter app that I have created. What's the easiest/most efficient way of handling this? Would I create a separate thread that has the listener set a certain Tkinter variable if there is incoming data? Any suggestions would be tremendously appreciated :-)
0
1151
by: Kevin F | last post by:
I've been trying to implement this script, it polls an IMAP inbox for unread messages and displays the sender and subject in a scrollable window using Tkinter. However, when I try to change the search parameters on line 55 from 'unread' (UNSEEN) to 'read' (SEEN), the tkinter window doesn't even pop up anymore. Any idea how to change the parameters of this program and yet still keep it functional?
0
1112
by: Kevin F | last post by:
Sorry to repost... but 4am didn't get much responses. I've been trying to implement this script, it polls an IMAP inbox for unread messages and displays the sender and subject in a scrollable window using Tkinter. However, when I try to change the search parameters on line 55 from 'unread' (UNSEEN) to 'read' (SEEN), the tkinter window doesn't even pop up anymore. Any idea how to change the parameters of this program and yet still keep...
3
2354
by: aldonnelley | last post by:
Hi all. Just having a weird problem with tkinter. I'm trying to make a gui that shows results from an image search, with a "forward" and "back" button so the user can compare results from different pages. All that's working fine... The problem I'm having is that the images don't show onscreen the first time the "first page" of results shows up. When I click the "search again" button, and have more than the original results page to...
14
2673
by: Hendrik van Rooyen | last post by:
Hi, I get the following: hvr@LINUXBOXMicrocorp:~/Controller/libpython display.py UpdateStringProc should not be invoked for type font Aborted and I am back at the bash prompt - this is most frustrating, as there is no friendly traceback to help me guess where its coming from.
32
7465
by: Kevin Walzer | last post by:
I'm a Tcl/Tk developer who has been working, slowly, at learning Python, in part because Python has better support for certain kinds of applications that I want to develop than Tcl/Tk does. Naturally, I thought that I would use Tkinter as the GUI for these programs. However, in doing research into GUI development techniques, sample code, and showcase applications, what has struck me is how little sophisticated GUI development seems to be...
6
2241
by: nairda | last post by:
Hi there, I need help processing data from Excel in VB. I have a MSHFlexgrid to show data extracted from Excel. I'm able to show a range of cells from Excel table to my Flexgrid, but that's it. The problem is, I can't filter the data I wanted to show from Excel table. Is it possible to filter Excel data using SQL command? I've tried several ways including SQL command like "select Name from tbcustomers where Name....." Please help me, anyone. ...
0
8381
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
8893
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
8799
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
8586
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
7401
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
6209
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
4380
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2792
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
2
2026
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.