gtkdialog - edit input file

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
singhai.nish
Posts: 8
Joined: Thu 16 Jan 2014, 14:56

gtkdialog - edit input file

#1 Post by singhai.nish »

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.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#2 Post by don570 »

Code: Select all

<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.

___________________________________________

Post Reply