Re: [pygtk] Beginner question on running PyGTK

2010-05-14 Thread Neil Muller
On 14 May 2010 21:29, Neil Benn  wrote:
>
>   I'm asking because I don't want to use a paradigm from another experience
> which is not suitable to what I'm trying to do with python and gtk.  Thanks
> for your help.

The most common gtk method for avoiding threads is to use tricks like
idle functions (glib.idle_add and friends) or timeouts
(glib.timeout_add) to handle things while the UI is idle. This does
require that these functions execue quickly, and it sounds like your
tasks aren't that well suited to this approach.

While it's perfectly possible to write threaded programs using pygtk,
Python's GIL, restricts the amount of parallelism that can be achieved
in pure python quite heavily, so threads aren't always the best
solution. The multiprocessing module addresses this by using processes
rather than threads, but still providing an interface that's quite
similar to the threading module.

-- 
Neil Muller
drnlmul...@gmail.com

I've got a gmail account. Why haven't I become cool?
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] Beginner question on running PyGTK

2010-05-14 Thread Steve McClure

On May 14, 2010, at 3:29 PM, Neil Benn wrote:

> Hello,
> 
> Thanks for the reply.  I'm puzzled here; I have a camera running in 
> the background grabbing frames from the camera; running some preprocessing on 
> the frames and then presenting the image on the window.  I'm also thinking of 
> recording some entries into a database and possibly making some network calls 
> when the app is runnign in an 'admin' mode.  I've programmed Java, .NET and 
> so on and the normal method I would use for this is to run the camera in one 
> thread in the background, then if I make remote calls or execute lengthy 
> databse queries from an event on the form (clicking a button or somethign 
> like that).  If I don't use threads for this then what would be the 'typical' 
> pyGTK method to handle both background tasks and executing lengthy events 
> from GUI events.
> 
>   I'm asking because I don't want to use a paradigm from another experience 
> which is not suitable to what I'm trying to do with python and gtk.  Thanks 
> for your help.

I've used threads in GTK programs without problems, as long as I never tried to 
run GTK code from within the thread. I started using pygtk back in the 0.6.x 
days and I don't think threads worked as well as they do now.  In any case, I 
always had my threads tell the main thread what needed to be done and it did 
the gtk work.  You can use timeouts and idle functions to do background work 
too, without having to fuss with threads.  Being an experienced threads 
programmer you are probably a step ahead though and maybe you should not shy 
away from using threads.

> 
> Cheers,
> 
> Neil
> 
> On 14 May 2010 19:09, Neil Muller  wrote:
> On 14 May 2010 19:48, Neil Benn  wrote:
> > This starts up as you would expect, printing a and b to the screen as the
> > threading time time slicing allows. However once the PyGTK window has opened
> > - these threads just freeze.
> 
> To use threads, you need to enable pygtk's support for threads by
> calling gtk.gdk.threads_init().
> 
> http://unpythonic.blogspot.com/2007/08/using-threads-in-pygtk.html is
> a good brief overview of how to use pygtk and threads.
> 
> It's also worthwhile reading the gtk+ notes on threading at
> http://developer.gimp.org/api/2.0/gdk/gdk-Threads.html , especially if
> you're trying to write something portable between X11 and Windows.
> 
> I would, however, recommend looking at alternative options, such as
> multiprocessing, carefully first, before committing yourself to a
> threaded solution.
> 
> --
> Neil Muller
> drnlmul...@gmail.com
> 
> I've got a gmail account. Why haven't I become cool?
> ___
> pygtk mailing list   pygtk@daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
> 
> 
> 
> -- 
> -- 
> 
> Neil Benn Msc
> Director
> Ziath Ltd
> Phone :+44 (0)7508 107942
> Website - http://www.ziath.com
> 
> IMPORTANT NOTICE:  This message, including any attached documents, is 
> intended only for the use of the individual or entity to which it is 
> addressed, and may contain information that is privileged, confidential and 
> exempt from disclosure under applicable law.  If the reader of this message 
> is not the intended recipient, or the employee or agent responsible for 
> delivering the message to the intended recipient, you are hereby notified 
> that any dissemination, distribution or copying of this communication is 
> strictly prohibited. If you have received this communication in error, please 
> notify Ziath Ltd immediately by email at i...@ziath.com. Thank you.
> ___
> pygtk mailing list   pygtk@daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/

--
Steve McClure
smccl...@racemi.com

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] Beginner question on running PyGTK

2010-05-14 Thread Neil Benn
Hello,

Thanks for the reply.  I'm puzzled here; I have a camera running in
the background grabbing frames from the camera; running some preprocessing
on the frames and then presenting the image on the window.  I'm also
thinking of recording some entries into a database and possibly making some
network calls when the app is runnign in an 'admin' mode.  I've programmed
Java, .NET and so on and the normal method I would use for this is to run
the camera in one thread in the background, then if I make remote calls or
execute lengthy databse queries from an event on the form (clicking a button
or somethign like that).  If I don't use threads for this then what would be
the 'typical' pyGTK method to handle both background tasks and executing
lengthy events from GUI events.

  I'm asking because I don't want to use a paradigm from another experience
which is not suitable to what I'm trying to do with python and gtk.  Thanks
for your help.

Cheers,

Neil

On 14 May 2010 19:09, Neil Muller

> wrote:

> On 14 May 2010 19:48, Neil Benn  wrote:
> > This starts up as you would expect, printing a and b to the screen as the
> > threading time time slicing allows. However once the PyGTK window has
> opened
> > - these threads just freeze.
>
> To use threads, you need to enable pygtk's support for threads by
> calling gtk.gdk.threads_init().
>
> http://unpythonic.blogspot.com/2007/08/using-threads-in-pygtk.html is
> a good brief overview of how to use pygtk and threads.
>
> It's also worthwhile reading the gtk+ notes on threading at
> http://developer.gimp.org/api/2.0/gdk/gdk-Threads.html , especially if
> you're trying to write something portable between X11 and Windows.
>
> I would, however, recommend looking at alternative options, such as
> multiprocessing, carefully first, before committing yourself to a
> threaded solution.
>
> --
> Neil Muller
> drnlmul...@gmail.com
>
> I've got a gmail account. Why haven't I become cool?
> ___
> pygtk mailing list   pygtk@daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>



-- 
-- 

Neil Benn Msc
Director
Ziath Ltd
Phone :+44 (0)7508 107942
Website - http://www.ziath.com

IMPORTANT NOTICE:  This message, including any attached documents, is
intended only for the use of the individual or entity to which it is
addressed, and may contain information that is privileged, confidential and
exempt from disclosure under applicable law.  If the reader of this message
is not the intended recipient, or the employee or agent responsible for
delivering the message to the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify Ziath Ltd immediately by email at i...@ziath.com. Thank you.
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] Beginner question on running PyGTK

2010-05-14 Thread Neil Muller
On 14 May 2010 19:48, Neil Benn  wrote:
> This starts up as you would expect, printing a and b to the screen as the
> threading time time slicing allows. However once the PyGTK window has opened
> - these threads just freeze.

To use threads, you need to enable pygtk's support for threads by
calling gtk.gdk.threads_init().

http://unpythonic.blogspot.com/2007/08/using-threads-in-pygtk.html is
a good brief overview of how to use pygtk and threads.

It's also worthwhile reading the gtk+ notes on threading at
http://developer.gimp.org/api/2.0/gdk/gdk-Threads.html , especially if
you're trying to write something portable between X11 and Windows.

I would, however, recommend looking at alternative options, such as
multiprocessing, carefully first, before committing yourself to a
threaded solution.

-- 
Neil Muller
drnlmul...@gmail.com

I've got a gmail account. Why haven't I become cool?
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


Re: [pygtk] Beginner question on running PyGTK

2010-05-14 Thread Steve McClure
I've never had any luck with all the GTK code in a thread. But using this tip 
from the FAQ

http://faq.pygtk.org/index.py?req=show&file=faq20.001.htp

worked fine on your example code.

On May 14, 2010, at 1:48 PM, Neil Benn wrote:

> Hello,
> 
> I have a very simple question which is stumping me.  I want to start 
> up PyGTK and then do some interaction with my business layer to do the work I 
> need so that I can display the data on my PyGTK app.  I'm setting up a window 
> and then calling gtk.main().  However when I do that everything else freezes; 
> I'm starting up an app and running something on a separate thread in the 
> background by gtk.main just stops running.  I've recreated the problem in a 
> simple use case below which is:
> 
> 
> import pygtk
> pygtk.require('2.0')
> import gtk
> import time
> from threading import Thread
> 
> class W(Thread):
> def __init__(self):
> Thread.__init__(self)
> self.window = gtk.Window()
> 
> def run(self):
> self.window.show()
> gtk.main()
> 
> class A(Thread):
> def __init__(self):
> Thread.__init__(self)
> self.count = 0
> 
> def run(self):
> while True:
> print 'a', self.count
> self.count += 1
> 
> class B(Thread):
> def __init__(self):
> Thread.__init__(self)
> self.count = 0
> 
> def run(self):
> while True:
> print 'b', self.count
> self.count += 1
> 
> if __name__ == '__main__':
> a = A()
> b = B() 
> w = W()
> a.start()
> b.start()
> time.sleep(2)
> w.start()
> while True:
> time.sleep(0.1)
> 
> 
> This starts up as you would expect, printing a and b to the screen as the 
> threading time time slicing allows. However once the PyGTK window has opened 
> - these threads just freeze.  I'm sure I cannot be the only person who deals 
> with this and it seems crazy to try and run everything on the GTK thread as 
> it would surely make the GUI unresponsive on operations which take a long 
> time?
> 
>   Note that I cannot trigger the app's business layer to start processing on 
> a button click as the app needs to interact with the business layer (a camera 
> capturing frames) from the word go and the application screen must be very 
> simple with no buttons to click at all (it is just used to report the output 
> from the camera after some frame processing).
> 
>   Thanks, in advance for your help.
> 
> Cheers,
> 
> Neil
> 
> -- 
> -- 
> 
> Neil Benn Msc
> Director
> Ziath Ltd
> Phone :+44 (0)7508 107942
> Website - http://www.ziath.com
> 
> IMPORTANT NOTICE:  This message, including any attached documents, is 
> intended only for the use of the individual or entity to which it is 
> addressed, and may contain information that is privileged, confidential and 
> exempt from disclosure under applicable law.  If the reader of this message 
> is not the intended recipient, or the employee or agent responsible for 
> delivering the message to the intended recipient, you are hereby notified 
> that any dissemination, distribution or copying of this communication is 
> strictly prohibited. If you have received this communication in error, please 
> notify Ziath Ltd immediately by email at i...@ziath.com. Thank you.
> ___
> pygtk mailing list   pygtk@daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/

--
Steve McClure
smccl...@racemi.com

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] Beginner question on running PyGTK

2010-05-14 Thread asomers
I've never tried using threading with pygtk, but I do have two suggestions:

1) Don't use threads.  Figure out how to do it with callbacks if at
all possible.  But it seems that you've already thought of that.

2) Don't use gtk.main().  gtk.main() is an infinite loop.  If you
don't need to pick up button presses and the like, you can do quite
nicely by calling gtk.main_iteration_do(), which will run gtk's main
loop once.  I've posted a usage example to
http://gist.github.com/401433 .

Happy programming!
-Alan

On Fri, May 14, 2010 at 11:48 AM, Neil Benn  wrote:
> Hello,
>
>     I have a very simple question which is stumping me.  I want to start
> up PyGTK and then do some interaction with my business layer to do the work
> I need so that I can display the data on my PyGTK app.  I'm setting up a
> window and then calling gtk.main().  However when I do that everything else
> freezes; I'm starting up an app and running something on a separate thread
> in the background by gtk.main just stops running.  I've recreated the
> problem in a simple use case below which is:
>
> 
> import pygtk
> pygtk.require('2.0')
> import gtk
> import time
> from threading import Thread
>
> class W(Thread):
>     def __init__(self):
>     Thread.__init__(self)
>     self.window = gtk.Window()
>
>     def run(self):
>     self.window.show()
>     gtk.main()
>
> class A(Thread):
>     def __init__(self):
>     Thread.__init__(self)
>     self.count = 0
>
>     def run(self):
>     while True:
>     print 'a', self.count
>     self.count += 1
>
> class B(Thread):
>     def __init__(self):
>     Thread.__init__(self)
>     self.count = 0
>
>     def run(self):
>     while True:
>     print 'b', self.count
>     self.count += 1
>
> if __name__ == '__main__':
>     a = A()
>     b = B()
>     w = W()
>     a.start()
>     b.start()
>     time.sleep(2)
>     w.start()
>     while True:
>     time.sleep(0.1)
> 
>
> This starts up as you would expect, printing a and b to the screen as the
> threading time time slicing allows. However once the PyGTK window has opened
> - these threads just freeze.  I'm sure I cannot be the only person who deals
> with this and it seems crazy to try and run everything on the GTK thread as
> it would surely make the GUI unresponsive on operations which take a long
> time?
>
>   Note that I cannot trigger the app's business layer to start processing on
> a button click as the app needs to interact with the business layer (a
> camera capturing frames) from the word go and the application screen must be
> very simple with no buttons to click at all (it is just used to report the
> output from the camera after some frame processing).
>
>   Thanks, in advance for your help.
>
> Cheers,
>
> Neil
>
> --
> --
>
> Neil Benn Msc
> Director
> Ziath Ltd
> Phone :+44 (0)7508 107942
> Website - http://www.ziath.com
>
> IMPORTANT NOTICE:  This message, including any attached documents, is
> intended only for the use of the individual or entity to which it is
> addressed, and may contain information that is privileged, confidential and
> exempt from disclosure under applicable law.  If the reader of this message
> is not the intended recipient, or the employee or agent responsible for
> delivering the message to the intended recipient, you are hereby notified
> that any dissemination, distribution or copying of this communication is
> strictly prohibited. If you have received this communication in error,
> please notify Ziath Ltd immediately by email at i...@ziath.com. Thank you.
>
> ___
> pygtk mailing list   pygtk@daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


[pygtk] Beginner question on running PyGTK

2010-05-14 Thread Neil Benn
Hello,

I have a very simple question which is stumping me.  I want to start
up PyGTK and then do some interaction with my business layer to do the work
I need so that I can display the data on my PyGTK app.  I'm setting up a
window and then calling gtk.main().  However when I do that everything else
freezes; I'm starting up an app and running something on a separate thread
in the background by gtk.main just stops running.  I've recreated the
problem in a simple use case below which is:


import pygtk
pygtk.require('2.0')
import gtk
import time
from threading import Thread

class W(Thread):
def __init__(self):
Thread.__init__(self)
self.window = gtk.Window()

def run(self):
self.window.show()
gtk.main()

class A(Thread):
def __init__(self):
Thread.__init__(self)
self.count = 0

def run(self):
while True:
print 'a', self.count
self.count += 1

class B(Thread):
def __init__(self):
Thread.__init__(self)
self.count = 0

def run(self):
while True:
print 'b', self.count
self.count += 1

if __name__ == '__main__':
a = A()
b = B()
w = W()
a.start()
b.start()
time.sleep(2)
w.start()
while True:
time.sleep(0.1)


This starts up as you would expect, printing a and b to the screen as the
threading time time slicing allows. However once the PyGTK window has opened
- these threads just freeze.  I'm sure I cannot be the only person who deals
with this and it seems crazy to try and run everything on the GTK thread as
it would surely make the GUI unresponsive on operations which take a long
time?

  Note that I cannot trigger the app's business layer to start processing on
a button click as the app needs to interact with the business layer (a
camera capturing frames) from the word go and the application screen must be
very simple with no buttons to click at all (it is just used to report the
output from the camera after some frame processing).

  Thanks, in advance for your help.

Cheers,

Neil

-- 
-- 

Neil Benn Msc
Director
Ziath Ltd
Phone :+44 (0)7508 107942
Website - http://www.ziath.com

IMPORTANT NOTICE:  This message, including any attached documents, is
intended only for the use of the individual or entity to which it is
addressed, and may contain information that is privileged, confidential and
exempt from disclosure under applicable law.  If the reader of this message
is not the intended recipient, or the employee or agent responsible for
delivering the message to the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify Ziath Ltd immediately by email at i...@ziath.com. Thank you.
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] Any way to create a drop down menu for a button without using gtk.MenuToolButton?

2010-05-14 Thread Walter Leibbrandt
Op 14/05/2010 17:02, Smartboy het geskryf:
> Specifically, I
> am looking at giving switchButton a drop down menu.
I implemented this for the main project I'm working on at the moment:
https://translate.svn.sourceforge.net/svnroot/translate/src/trunk/virtaal/virtaal/views/widgets/popupbutton.py

The biggest issue I had was calculating the menu's position (relative to
the button, see the _calculate_popup_pos() method), but it's mostly working.

HTH,
-- 
Walter Leibbrandt  Software Developer
Recent blogs:
* Ubuntu PPA for Translate Toolkit and Virtaal
http://www.translate.org.za/blogs/walter/en/content/ubuntu-ppa-translate-toolkit-and-virtaal

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


[pygtk] Any way to create a drop down menu for a button without using gtk.MenuToolButton?

2010-05-14 Thread Smartboy
Hello all,

Recently, I have started my own project with PyGTK creating a
Prism-like application using Webkit instead of Mozilla's engine. So
far so good, but what I'd like to do is create a drop down menu
without using gtk.MenuToolButton. You may be asking why, and the
answer is because I have found its hard to size icons as small as I
need them without using gtk.Image's set_pixel_size property which, as
far as I know, isn't available for gtk.ToolButton (though I could be
looking in the wrong places). So, I created several buttons in place
of the toolbar with their icons being size that is as small as I want
them (16px), but the only way I've seen to create one of these drop
down menus is with MenuToolButton. IS there any other way to do this,
or perhaps a way to use the toolbar while keeping the size of my icons
how they are?

The code I am working with is put below, but because I know gmail is
probably going to mess with it, I'm also attaching it. Specifically, I
am looking at giving switchButton a drop down menu.

Smartboy

#CODE STARTS HERE#
backButton = gtk.Button()
backButton.set_relief(gtk.RELIEF_NONE)
backImage = gtk.Image()
backImage.set_from_stock(gtk.STOCK_GO_BACK, gtk.ICON_SIZE_MENU)
backImage.set_pixel_size(16)
backButton.add(backImage)
backButton.connect('clicked', self.back)
forwardButton = gtk.Button()
forwardButton.set_relief(gtk.RELIEF_NONE)
forwardImage = gtk.Image()
forwardImage.set_from_stock(gtk.STOCK_GO_FORWARD, gtk.ICON_SIZE_MENU)
forwardImage.set_pixel_size(16)
forwardButton.add(forwardImage)
forwardButton.connect('clicked', self.forward)
self.reloadButton = gtk.Button()
self.reloadButton.set_relief(gtk.RELIEF_NONE)
reloadImage = gtk.Image()
reloadImage.set_from_stock(gtk.STOCK_REFRESH, gtk.ICON_SIZE_MENU)
reloadImage.set_pixel_size(16)
self.reloadButton.add(reloadImage)
self.reloadButton.connect('clicked', self.refresh)
self.stopButton = gtk.Button()
self.stopButton.set_relief(gtk.RELIEF_NONE)
stopImage = gtk.Image()
stopImage.set_from_stock(gtk.STOCK_STOP, gtk.ICON_SIZE_MENU)
stopImage.set_pixel_size(16)
self.stopButton.add(stopImage)
self.stopButton.connect('clicked', self.stop)
self.stopButton.hide()
homeButton = gtk.Button()
homeButton.set_relief(gtk.RELIEF_NONE)
homeImage = gtk.Image()
homeImage.set_from_stock(gtk.STOCK_HOME, gtk.ICON_SIZE_MENU)
homeImage.set_pixel_size(16)
homeButton.add(homeImage)
homeButton.connect('clicked', self.home)
switchButton = gtk.Button()
switchButton.set_relief(gtk.RELIEF_NONE)
switchImage = gtk.Image()
switchImage.set_from_stock(gtk.STOCK_INDEX, gtk.ICON_SIZE_MENU)
switchImage.set_pixel_size(16)
switchButton.add(switchImage)
switchButton.connect('clicked', self.switch)
backButton = gtk.Button()
backButton.set_relief(gtk.RELIEF_NONE)
backImage = gtk.Image()
backImage.set_from_stock(gtk.STOCK_GO_BACK, gtk.ICON_SIZE_MENU)
backImage.set_pixel_size(16)
backButton.add(backImage)
backButton.connect('clicked', self.back)
forwardButton = gtk.Button()
forwardButton.set_relief(gtk.RELIEF_NONE)
forwardImage = gtk.Image()
forwardImage.set_from_stock(gtk.STOCK_GO_FORWARD, gtk.ICON_SIZE_MENU)
forwardImage.set_pixel_size(16)
forwardButton.add(forwardImage)
forwardButton.connect('clicked', self.forward)
self.reloadButton = gtk.Button()
self.reloadButton.set_relief(gtk.RELIEF_NONE)
reloadImage = gtk.Image()
reloadImage.set_from_stock(gtk.STOCK_REFRESH, gtk.ICON_SIZE_MENU)
reloadImage.set_pixel_size(16)
self.reloadButton.add(reloadImage)
self.reloadButton.connect('clicked', self.refresh)
self.stopButton = gtk.Button()
self.stopButton.set_relief(gtk.RELIEF_NONE)
stopImage = gtk.Image()
stopImage.set_from_stock(gtk.STOCK_STOP, gtk.ICON_SIZE_MENU)
stopImage.set_pixel_size(16)
self.stopButton.add(stopImage)
self.stopButton.connect('clicked', self.stop)
self.stopButton.hide()
homeButton = gtk.Button()
homeButton.set_relief(gtk.RELIEF_NONE)
homeImage = gtk.Image()
homeImage.set_from_stock(gtk.STOCK_HOME, gtk.ICON_SIZE_MENU)
homeImage.set_pixel_size(16)
homeButton.add(homeImage)
homeButton.connect('clicked', self.home)
switchButton = gtk.Button()
switchButton.set_relief(gtk.RELIEF_NONE)
switchImage = gtk.Image()
switchImage.set_from_stock(gtk.STOCK_INDEX, gtk.ICON_SIZE_MENU)
switchImage.set_pixel_size(16)
switchButton.add(switchImage)
switchButton.connect('clicked', self.switch)
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] Drag and Drop on Windows

2010-05-14 Thread Bradlee Landis
On Fri, May 14, 2010 at 4:25 AM, Timo  wrote:
> Do you really need GTK+ 2.20? You could use 2.18, which isn't that new and is 
> pretty stable. And most important, it works fine here on Windows.

Yeah, I could, but I figured newer was better. I'll move back and then
hopefully all will be well.


--
Thanks,
Brad Landis
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


Re: [pygtk] Drag and Drop on Windows

2010-05-14 Thread Timo
On 14-05-10 04:02, Bradlee Landis wrote:
> I tried it using the GTK demo program, and it failed.
>
> I'm using GTK 2.20.0 (I think), and PyGTK 2.16.0.
Do you really need GTK+ 2.20? You could use 2.18, which isn't that new 
and is pretty stable. And most important, it works fine here on Windows.

>
> I guess I should report this on the GTK bug tracker?
I think this would be the right thing to do indeed.

Cheers,
Timo

>
> On Thu, May 13, 2010 at 11:15 AM, Timo  > wrote:
>
> On 13-05-10 16:07, Bradlee Landis wrote:
> > I recently upgraded to the newest version of GTK and PyGTK on my
> > Windows 7 machine,
> What are the excact versions of your GTK+ and PyGTK installation?
>
> >
> > Has anyone else seen this issue? This is probably more GTK's fault
> > than PyGTK.
> There comes a demo application with both GTK+ and PyGTK. Run them and
> see if drag and drop works in one of the two.
>
> Cheers,
> Timo
>
> >
> > --
> > Thanks,
> > Brad Landis
> >
> >
> > ___
> > pygtk mailing list pygtk@daa.com.au 
> > http://www.daa.com.au/mailman/listinfo/pygtk
> > Read the PyGTK FAQ: http://faq.pygtk.org/
>
> ___
> pygtk mailing list pygtk@daa.com.au 
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
>
>
>
> -- 
> Thanks,
> Brad Landis

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


[pygtk] Migration notes for PyGTK?

2010-05-14 Thread Geoff Bache
Hi all,

Just tried to upgrade PyGTK from 2.12 to 2.16 and discovered that
various code I had didn't work any more.

If I search around I can find documentation of these
back-compatibility breaking changes, but I wondered if there was any
such thing as some migration notes anywhere that would especially
highlight changes that break existing code? Couldn't find any in the
source download but maybe I'm looking in the wrong place.

Regards,
Geoff Bache
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/