<br><br><div class="gmail_quote">On Mon, Dec 27, 2010 at 3:16 PM, Art Hunkins <span dir="ltr"><<a href="mailto:abhunkin@uncg.edu">abhunkin@uncg.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Walter,<br>
<br>
Once again, thanks for creating this page.<br>
<br>
As is clear from my last message to this list (and Aleksey's helpful reply), a couple of small changes need to be made to the page. (I tried to do this myself, but now realize these pages can only be edited by administrators.)<br>
</blockquote><div><br>really? Should be editable by any logged in user. <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
The two needed changes, as previously discussed are:<br>
<br>
1) replace the final code segment with:<br>
<br>
def choose(self, widget):<div class="im"><br>
chooser = ObjectChooser(parent=self, what_filter=mime.GENERIC_TYPE_AUDIO)<br>
result = chooser.run()<br>
if result == gtk.RESPONSE_ACCEPT:<br></div>
self.jobject = chooser.get_selected_object()<br>
self.path = str(self.jobject.get_file_path())<br>
else:<br>
self.jobject = None<br>
self.path1 = "0"<br>
<br>
2) change the reference to "self.name1" in the last paragraph to "self.path".<br>
<br>
Thanks so much -<br></blockquote><div><br>Done. np <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Art Hunkins<br>
<br>
P.S. My latest FileMix (FileMix-4.xo) incorporates these changes - in the file filemix.py. Actually, there are *4* object chooser methods included, triggered by a set of 4 callback buttons. (For those interested, I've made the source code visible online for this version.)<br>
<br>
----- Original Message ----- From: "Walter Bender" <<a href="mailto:walter.bender@gmail.com" target="_blank">walter.bender@gmail.com</a>><div class="im"><br>
To: "Art Hunkins" <<a href="mailto:abhunkin@uncg.edu" target="_blank">abhunkin@uncg.edu</a>><br>
Cc: <<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a>><br></div>
Sent: Wednesday, December 22, 2010 8:58 AM<div class="im"><br>
Subject: Re: [Sugar-devel] Object Chooser (selecting user-created audio objects from the Journal)<br>
<br>
<br>
</div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I created <a href="http://wiki.sugarlabs.org/go/Activity_Team/Object_Chooser" target="_blank">http://wiki.sugarlabs.org/go/Activity_Team/Object_Chooser</a><br>
with both your and Aleksey's code and comments.<br>
<br>
-walter<br>
<br>
--<br>
Walter Bender<br>
Sugar Labs<br>
<a href="http://www.sugarlabs.org" target="_blank">http://www.sugarlabs.org</a> <br>
</blockquote>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Walter Bender<br>Sugar Labs<br><a href="http://www.sugarlabs.org">http://www.sugarlabs.org</a><br><br>