BBS.PROGENIC.COM
Home      Members   Calendar   Who's On   SOTM
Welcome Guest ( Login | Register )
      

Home » Chat » Coding » pygtk via quickly/glade textbuffer issues

pygtk via quickly/glade textbuffer issuesExpand / Collapse
Author
Message
Posted Wednesday, March 03, 2010 5:15 PM


Progenic Family

Progenic Family

Group: Moderators
Last Login: Wednesday, October 12, 2011 11:12 AM
Posts: 536, Visits: 4,030
in a little test app i am adding text to a text buffer like so:

buff.insert(buff.get_end_iter(), "text.")

now when i use a if statement like this:

if(var==None):
buff.insert(buff.get_end_iter(), "text.")
else:
buff.insert(buff.get_end_iter(), "text2.")

both text. and text2. get printed to the buffer, what am i doing wrong here?

"There can be no justice so long as laws are absolute.
Life itself is an exercise in exceptions."
- Jean-Luc Picard
Post #19044
Posted Wednesday, March 03, 2010 7:54 PM


Progenic Family

Progenic Family

Group: Forum Members
Last Login: Friday, April 01, 2011 6:02 PM
Posts: 261, Visits: 517
You try putting a print statement below each to print out all variable values?

Post #19045
Posted Thursday, March 04, 2010 7:14 AM
New Member

New Member

Group: Forum Members
Last Login: Wednesday, May 05, 2010 7:08 AM
Posts: 2, Visits: 24
yeah nvm i got it worked out
Post #19046
Posted Sunday, March 07, 2010 1:10 AM


Progenic Crew

Progenic Crew

Group: Administrators
Last Login: Sunday, November 27, 2011 7:50 AM
Posts: 2,738, Visits: 38,421
stop posting as me anarchy you hacker or i'll have people hack you to bits

 
Post #19051
Posted Sunday, March 07, 2010 11:04 AM


Progenic Family

Progenic Family

Group: Moderators
Last Login: Wednesday, October 12, 2011 11:12 AM
Posts: 536, Visits: 4,030
I forgot I was still logged into that account when I made that post sry rm the account plz

"There can be no justice so long as laws are absolute.
Life itself is an exercise in exceptions."
- Jean-Luc Picard
Post #19052
Posted Sunday, March 07, 2010 12:13 PM


Progenic Family

Progenic Family

Group: Forum Members
Last Login: Friday, April 01, 2011 6:02 PM
Posts: 261, Visits: 517
proge (3/7/2010)
stop posting as me anarchy you hacker or i'll have people hack you to bits
You COULD fix the problem ya know =P

Post #19055
Posted Sunday, March 07, 2010 9:55 PM


Progenic Crew

Progenic Crew

Group: Administrators
Last Login: Sunday, November 27, 2011 7:50 AM
Posts: 2,738, Visits: 38,421
hmm that is an interesting concept

 
Post #19057
« Prev Topic | Next Topic »

Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: proge, wax, stadz, Anarchy Angel, lun0s

All times are GMT -6:00, Time now is 8:38am

Progenic BBS 2012
Execution: 0.109. 10 queries. Compression Enabled.