Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 22 Oct 2014, 23:08
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Problems improving GUI with gtkdialog
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
matiasbatero


Joined: 11 Oct 2012
Posts: 60
Location: Mar del Plata, Argentina

PostPosted: Fri 11 Jan 2013, 01:29    Post subject:  Problems improving GUI with gtkdialog
Subject description: Gtkdialog CD/DVD Burning Software. Seeking solutions/ideas to solve problems and/or improve the GUI.
 

Hi people!!

I'm developing a CD/DVD bash burning program with "not-common" features.

I have a big progress with it, but i need some help to solve some "problems" to solve with my gtkdialog GUI.

First, a screenshot:


Expanding burn panel:


The program include a lightweight built-in browser. And it have a minimal toolbar that allows add files, folders.. etc.

(To add files/folders, i use the "fileselect function" for it's advantages on file filters etc.. )

(First Way)

One of my currently limitations with it, is that i can't use the "Multiple Selection" to add various files on one hand, because the widget cannot export all selected file paths.

:: If someone knows how to implement this...


or (Second way)
So, i test another way to add files (less usefull that the multiple selection), but for me it's "ok". The idea is:
Launch constantly a chooser gui when the "add file button" is pressed for the user, until he press the Cancel/Abort button. So, in this way, the user avoids to push the "add button" for every file who wants to add.


It consist on external choser dialog allowed in a file.

Code:
<vbox space-expand="true" space-fill="true">
   <chooser space-expand="true" space-fill="true">
      <variable>choser</variable>   
      <height>500</height>
      <width>700</width>      
   </chooser>
   <hbox>
      <button>
         <label>Add file to project</label>
      </button>
      <button cancel></button>
   </hbox>                     
</vbox>


On the main GUI, the "Add file" button, execute the next function:

Code:
launch_chooser(){
until [ "$EXIT" = "Cancel" -o "$EXIT" = "Abort" ]
    do
        gtkdialog --center --file "$HOME/choser_gui.file"
done
}


Executing the current code, the program works fine only for the "Add button" (it shows the choser gui constantly for every pressed-add_button). But, when i push the "exit", it doesn't stop. So, the "exit" and "add" buttons works equal.

:: I need some help to solve this way.

If someone have a best idea how to implement this, it will be very usefull for me!

Regards!!

PD: Sorry for my english, i speak spanish. Long Life Gtkdialog!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0787s ][ Queries: 12 (0.0380s) ][ GZIP on ]