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: Yesterday @ 4:51 PM
Posts: 531, Visits: 3,843
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: Yesterday @ 9:09 PM
Posts: 270, Visits: 512
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: Monday, July 26, 2010 2:34 AM
Posts: 2,759, Visits: 38,407
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: Yesterday @ 4:51 PM
Posts: 531, Visits: 3,843
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: Yesterday @ 9:09 PM
Posts: 270, Visits: 512
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: Monday, July 26, 2010 2:34 AM
Posts: 2,759, Visits: 38,407
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 5:05pm

Progenic BBS 2010
Execution: 0.234. 9 queries. Compression Enabled.