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 Sat 30 Aug 2014, 14:21
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
gtkdialog - edit input file
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
singhai.nish

Joined: 16 Jan 2014
Posts: 8

PostPosted: Tue 28 Jan 2014, 06:03    Post_subject:  gtkdialog - edit input file
Sub_title: could'nt stat
 

I am trying this and constantly getting this error. Anybody getting same error. How did you solve it.

<edit file-monitor="true" auto-refresh="true">
<variable>AO2_2EDITOR</variable>
<width>300</width><height>200</height>
<default>Output Display</default>
<sensitive>true</sensitive>
<action signal="refresh">AO2_2outputFileName</action>
<input file>AO2_2outputFileName</input>
</edit>


widget_edit_input_by_file(): Couldn't stat 'AO2_2outputFileName'.


I got answer. There was no text file by this name hence the error.

After ensuring file gets created it works.
Back to top
View user's profile Send_private_message 
don570


Joined: 10 Mar 2010
Posts: 3259
Location: Ontario

PostPosted: Thu 30 Jan 2014, 20:59    Post_subject:  

Code:

<action signal="refresh">AO2_2outputFileName</action>


When you do a refresh it has to be on a widget variable name.
In your example it is a filename, so you are getting an error.

I like to use capital letters for widget variable names so I don't
get confused.


Think of the widget that is emitting the
signal and the other widget that is receiving the signal.

___________________________________________
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
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.0422s ][ Queries: 11 (0.0033s) ][ GZIP on ]