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 27 Aug 2014, 05:04
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 Posts_count_1  
Author Message
matiasbatero


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

PostPosted: Fri 11 Jan 2013, 01:29    Post_subject:  Problems improving GUI with gtkdialog
Sub_title: 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:   Sort by:   
Page 1 of 1 Posts_count_1  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0456s ][ Queries: 11 (0.0064s) ][ GZIP on ]