[pygtk] Focus on DrawingArea in TextView

2011-03-06 Thread Robert Schroll
Hi all, I'm trying to make a DrawingArea that's anchored in a TextView be able to receive keyboard focus. I have the pieces - I can make a DrawingArea that's in a regular container grab focus on being clicked. And I know that an Entry, e.g., can get focus when anchored in a TextView. But I

Re: [pygtk] Left justifying label text

2011-03-06 Thread mercado
Hello Timo, Yes, you're right. I must have missed those lines in the documentation. Thanks again for your help. On Sun, Mar 6, 2011 at 12:43 PM, Timo wrote: > Have you read the docs about set_justify()? It has 3 important parts in your > case. > Quote [1]: > |gtk.JUSTIFY_LEFT| is the default v

Re: [pygtk] Left justifying label text

2011-03-06 Thread Timo
On 06-03-11 15:18, mercado wrote: Hello all, I am having a problem left justifying the text in a label. I have included a sample program below. I am trying to left justify the label text ("This is a test"), but it is showing it centered instead. Can anybody point out where I am going wrong?

[pygtk] Detect clipboard paste in Python

2011-03-06 Thread fstephens
Is there a way to monitor when a user pastes data from the Linux clipboard? I want to know if a Ctrl-V or menu paste has occurred (not middle-click pasting of a selection), in any application. I have seen ways to do this in a GTK input or textview, but I need to detect a paste in any application.

[pygtk] Left justifying label text

2011-03-06 Thread mercado
Hello all, I am having a problem left justifying the text in a label. I have included a sample program below. I am trying to left justify the label text ("This is a test"), but it is showing it centered instead. Can anybody point out where I am going wrong? Thanks in advance.