Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-26-2005, 07:49 PM   #1
LQ Newbie
Registered: Jan 2005
Posts: 2

Rep: Reputation: 0
gtk: table manipulation?

I'm trying to write a cross platform program that will display a 2d array as a table. I want to be able to left click on a cell and drag the whole row up or down and then place it back into the table at a different location. Also, I want to be able to right click on a cell and drag the whole column left of right and then place it back into the table at a different location.

So far I've tried using gtk's liststore which has a built in function that allows the rows to be reorded as described but I can't seem to write code to get the columns to work as desired. I'm starting to think that liststore is the wrong way to approach this problem. Any insight would be great. Thanks.
Old 01-27-2005, 04:36 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,571

Rep: Reputation: 180Reputation: 180
I think that listview is the right widget, but you need to write your own callback for clicked events. Where do you have problems exactly? A small piece of code would help.
Old 01-27-2005, 09:45 PM   #3
LQ Newbie
Registered: Jan 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the reply, I've acutally started another approach, using tkinter which seems very promising. Tkinter is a lot lessed black boxed so I feel like I'm in more control if only because I understand what's going on better. I'll keep you posted.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
file manipulation with c C.Aymen Programming 2 09-01-2005 12:48 PM
[C/C++] Image manipulation Cornholio Programming 2 03-06-2005 11:46 AM
MySQL non-realtime table-by-table mirroring Passive Linux - Software 1 01-20-2004 12:11 PM
How to import MS ACCESS Table including OLE filed into the MySQL Table ? myunicom Linux - General 1 11-28-2003 11:30 AM
Port manipulation in rh 9 don_dimo Linux - Networking 2 10-14-2003 08:07 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration