LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 01-26-2005, 08:49 PM   #1
jpollack
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, 05:36 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,540

Rep: Reputation: 149Reputation: 149
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, 10:45 PM   #3
jpollack
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.
 
  


Reply


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 01:48 PM
[C/C++] Image manipulation Cornholio Programming 2 03-06-2005 12:46 PM
MySQL non-realtime table-by-table mirroring Passive Linux - Software 1 01-20-2004 01:11 PM
How to import MS ACCESS Table including OLE filed into the MySQL Table ? myunicom Linux - General 1 11-28-2003 12:30 PM
Port manipulation in rh 9 don_dimo Linux - Networking 2 10-14-2003 09:07 PM


All times are GMT -5. The time now is 09:56 AM.

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