Thanks all, it's helping I have already solved problem 2, I moved away
from a dialog window and moved to using a regular window with the
show/hide method and it's working fine for me so far, which is
fantastic, am still struggling with the text view. This time I have
attached the full project as a tar.bz2 file, this is for the individual
who mentioned my glade file would help diagnose the issue. The thign
with the text view is this:<br>
<br>(Code excerpt from the Preferecnes.py file line 149)<br>&nbsp;&nbsp;&nbsp; def Set_Source_Text_View( self ):<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #Preferences_Window = gtk.glade.XML( &quot;warp-gui.glade&quot;, &quot;Preferences&quot; )<div class="Ih2E3d"><br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; print &quot;Entering prefs text view function.&quot;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #for Feed in self.Feeds:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #&nbsp;&nbsp;&nbsp; print Feed<br></div>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; FeedView = self.Preferences_Window.get_<div id=":18k" class="ArwC7c ckChnd">widget( &quot;TXTV_Feeds&quot; )<div class="Ih2E3d"><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; FeedView_Buffer = gtk.TextBuffer( None )<br>
<br></div><div class="Ih2E3d">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; data = &quot;&quot;<br>
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for Feed in self.Feeds:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; data += Feed + &quot;\n&quot;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; print data<br><br></div><div class="Ih2E3d">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; FeedView_Buffer.insert_at_cursor(data,len(data))<br><br></div><div class="Ih2E3d">
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; FeedView.set_buffer( FeedView_Buffer )<br>
<br></div>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #print FeedView.get_buffer( )<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #FeedView_Buffer.insert_at_cursor( &quot;Testing.&quot;, len( &quot;Testing.&quot; ) )<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; print &quot;Exiting prefs text view function.&quot; <br><br>
Once
I actually get my head around text views what is going to be displayed
is the data in self.Feeds my random for loop there was just something
else I was trying with treeview. This goes for a lot of my code at the
moment I&#39;m aware it requires a lot of refactoring, but as it stands my
project needs core functionality to pass and I just get extra marks for
cleaner code,and while clean code is always good refactoring will have
to wait until core functionality has been implemented. <br>
<br>I have been on #pygtk on freenode but I very rarely get a reply and
often get told to just read the documentation, which I do anyways since
there is really a wealth of usful bits and pieces in the documentation,
it&#39;s how I have gotten as far as I have.<br>
<br>Originally my aim that was done with the treeview was to have a
check box, a progress bar and a button in each row, the check box would
mark/unmark the update, the progress bar would show the name of the
update and it&#39;s progress and the button the user could click would
display update information (looks a bit like the itunes music store,
except for software updates), but I was told that it&#39;s really really
hard to get buttons inside a tree view as a cell renderer, although I
personally don&#39;t know, it was just something someone told me once.<br>
<br>I am more than happy to focus on one part of the code at the moment
just to keep things easier, I am quite eager to finish my preferences
code first but really any progress is good. <br><br>Many thanks<br><font color="#888888">Neil Munro<br>
</font><br>PS: If you wish to attempt to run the code you have to be
running as root, not as sudo, so you must enter root via sudo -i, and
atm it only runs on UNIX systems.</div>