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> def Set_Source_Text_View( self ):<br> #Preferences_Window = gtk.glade.XML( "warp-gui.glade", "Preferences" )<div class="Ih2E3d"><br>
print "Entering prefs text view function."<br>
#for Feed in self.Feeds:<br> # print Feed<br></div> FeedView = self.Preferences_Window.get_<div id=":18k" class="ArwC7c ckChnd">widget( "TXTV_Feeds" )<div class="Ih2E3d"><br> FeedView_Buffer = gtk.TextBuffer( None )<br>
<br></div><div class="Ih2E3d"> data = ""<br>
<br> for Feed in self.Feeds:<br> data += Feed + "\n"<br><br> print data<br><br></div><div class="Ih2E3d"> FeedView_Buffer.insert_at_cursor(data,len(data))<br><br></div><div class="Ih2E3d">
FeedView.set_buffer( FeedView_Buffer )<br>
<br></div> #print FeedView.get_buffer( )<br><br> #FeedView_Buffer.insert_at_cursor( "Testing.", len( "Testing." ) )<br> print "Exiting prefs text view function." <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'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'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'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's really really
hard to get buttons inside a tree view as a cell renderer, although I
personally don'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>