Re: [pygtk] Re: LCD-style display widget

2008-06-17 Thread Frédéric Mantegazza
On mardi 17 juin 2008, John Stowers wrote:

 On Mon, 2008-06-16 at 18:21 +0200, Frédéric Mantegazza wrote:
  On lundi 16 juin 2008, Jeffrey Barish wrote:
   I noticed that the application gslimp3
   (http://jefke.free.fr/coding/python/gslimp3/) has such a display.
   Perhaps you can find something useful in its code.
 
  Nice! Thanks for the link :o)

 I thought this widget was cool so I extracted it from the gslim
 application. You can see the standalone lcd widget at

 bzr branch http://johnstowers.co.nz/bzr/pygtk-lcd-widget/

Many thanks, but I can't get the package: bzr waits forever, after creating 
the pygtk-lcd-widget/ dir and .bzr/ sub-dir...

-- 
   Frédéric

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


Re: [pygtk] Re: LCD-style display widget

2008-06-17 Thread John Stowers
On Tue, 2008-06-17 at 08:02 +0200, Frédéric Mantegazza wrote:
 On mardi 17 juin 2008, John Stowers wrote:
 
  On Mon, 2008-06-16 at 18:21 +0200, Frédéric Mantegazza wrote:
   On lundi 16 juin 2008, Jeffrey Barish wrote:
I noticed that the application gslimp3
(http://jefke.free.fr/coding/python/gslimp3/) has such a display.
Perhaps you can find something useful in its code.
  
   Nice! Thanks for the link :o)
 
  I thought this widget was cool so I extracted it from the gslim
  application. You can see the standalone lcd widget at
 
  bzr branch http://johnstowers.co.nz/bzr/pygtk-lcd-widget/
 
 Many thanks, but I can't get the package: bzr waits forever, after creating 
 the pygtk-lcd-widget/ dir and .bzr/ sub-dir...

Are you sure? 

I just did a fresh checkout on another pc and it worked fine

John

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


Re: [pygtk] How to make a browser?

2008-06-17 Thread John Stowers
On Tue, 2008-06-17 at 01:21 -0300, Paolo Bacci wrote:
 Hi, I want to know if there's any functional browser in python.

I used gtkmozembed in conduit. You can see the code for that at
http://svn.gnome.org/viewvc/conduit/trunk/conduit/Web.py?view=log

There is also python bindings to webkit

John

 
 If not, how can I make it?
 
 Thanks,
 Paolo Bacci.
 ___
 pygtk mailing list   pygtk@daa.com.au
 http://www.daa.com.au/mailman/listinfo/pygtk
 Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

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


Re: [pygtk] Re: LCD-style display widget

2008-06-17 Thread Frédéric Mantegazza
On mardi 17 juin 2008, John Stowers wrote:

   bzr branch http://johnstowers.co.nz/bzr/pygtk-lcd-widget/
 
  Many thanks, but I can't get the package: bzr waits forever, after
  creating the pygtk-lcd-widget/ dir and .bzr/ sub-dir...

 Are you sure?

 I just did a fresh checkout on another pc and it worked fine

With this command?:

$ bzr branch http://johnstowers.co.nz/bzr/pygtk-lcd-widget/

(I'm not familiar with bazar...). As I said, some files are first 
downloaded (I can see a progressbar going to 100%), then, it does nothing, 
and does not return...

-- 
   Frédéric

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


[pygtk] Changing Images fast

2008-06-17 Thread Thomas Guettler

Hi,

how can you change images (large jpegs) fast? Even if they are already 
loaded

and scaled, changing it needs some time.

Here is the current code:

{{{
pixbuf=self.imageCache.get(self.image.filename, *self.size())
self.gtkimage.set_from_pixbuf(pixbuf)
self.gtkimage.show()

}}}

The imageCache has got the pixbuf already loaded, but nevertheless I think
it could be faster. How can this be improved? Maybe use a second gtkimage
and set the pixbuf beforehand?

Source:
http://guettli.sourceforge.net/gthumpy/src/Application.py

--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de

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


Re: [pygtk] Re: LCD-style display widget

2008-06-17 Thread John Stowers
On Tue, 2008-06-17 at 11:06 +0200, Frédéric Mantegazza wrote:
 On mardi 17 juin 2008, John Stowers wrote:
 
bzr branch http://johnstowers.co.nz/bzr/pygtk-lcd-widget/
  
   Many thanks, but I can't get the package: bzr waits forever, after
   creating the pygtk-lcd-widget/ dir and .bzr/ sub-dir...
 
  Are you sure?
 
  I just did a fresh checkout on another pc and it worked fine
 
 With this command?:
 
 $ bzr branch http://johnstowers.co.nz/bzr/pygtk-lcd-widget/
 
 (I'm not familiar with bazar...). As I said, some files are first 
 downloaded (I can see a progressbar going to 100%), then, it does nothing, 
 and does not return...

Weird, maybe a bzr bug. What does the output with 

bzr branch http://johnstowers.co.nz/bzr/pygtk-lcd-widget/ --verbose

say? Can anyone else test this. You can zoom in and out with scroll
wheel (and change brightness with ctrl+scroll). Double click to change
text.

I attached the files also.



 
# Character set for the Squeezebox display

00
0
0
0
0
0
0
0

01
0
0
0
0
0
0
0

02
0
0
0
0
0
0
0

03
0
0
0
0
0
0
0

04
0
0
0
0
0
0
0

05
0
0
0
0
0
0
0

06
0
0
0
0
0
0
0

07
0
0
0
0
0
0
0

08
0
0
0
0
0
0
0

09
0
0
0
0
0
0
0

0a
0
0
0
0
0
0
0

0b
0
0
0
0
0
0
0

0c
0
0
0
0
0
0
0

0d
0
0
0
0
0
0
0

0e
0
0
0
0
0
0
0

0f
0
0
0
0
0
0
0

10
1
1
1
1
1
1
1

11
11000
11000
11000
11000
11000
11000
11000

12
11100
11100
11100
11100
11100
11100
11100

13
0
0
0
0
0
0
0

14
1
1
1
1
1
1
1

15
0
0
0
0
0
0
0

16
00111
00111
00111
00111
00111
00111
00111

17
00011
00011
00011
00011
00011
00011
00011

18
1
1
1
1
1
1
1

19
00100
00110
00101
00101
01101
11100
01100

1a
11000
11000
0
00111
01000
01000
00111

1b
11000
11000
0
0
01000
01110
01000

1c
0
0
1
01110
00100
0
0

1d
0
01000
01100
01110
01100
01000
0

1e
0
00010
00110
01110
00110
00010
0

1f
0
0
00100
01110
1
0
0

20
0
0
0
0
0
0
0

21
00100
00100
00100
00100
0
0
00100

22
01010
01010
01010
0
0
0
0

23
01010
01010
1
01010
1
01010
01010

24
00100
0
10100
01110
00101
0
00100

25
11000
11001
00010
00100
01000
10011
00011

26
01100
10010
10100
01000
10101
10010
01101

27
01100
00100
01000
0
0
0
0

28
00010
00100
01000
01000
01000
00100
00010

29
1
01000
00100
00100
00100
01000
1

2a
0
00100
10101
01110
10101
00100
0

2b
0
00100
00100
1
00100
00100
0

2c
0
0
0
0
01100
00100
01000

2d
0
0
0
1
0
0
0

2e
0
0
0
0
0
11000
11000

2f
0
1
00010
00100
01000
1
0

30
01110
10001
10011
10101
11001
10001
01110

31
00100
01100
00100
00100
00100
00100
01110

32
01110
10001
1
00010
00100
01000
1

33
1
00010
00100
00010
1
10001
01110

34
00010
00110
01010
10010
1
00010
00010

35
1
1
0
1
1
10001
01110

36
00110
01000
1
0
10001
10001
01110

37
1
1
00010
00100
01000
01000
01000

38
01110
10001
10001
01110
10001
10001
01110

39
01110
10001
10001
0
1
00010
01100

3a
0
01100
01100
0
01100
01100
0

3b
0
01100
01100
0
01100
00100
01000

3c
00010
00100
01000
1
01000
00100
00010

3d
0
0
1
0
1
0
0

3e
1
01000
00100
00010
00100
01000
1

3f
01110
10001
1
00010
00100
0
00100

40
01110
10001
1
01101
10101
10101
01110

41
01110
10001
10001
10001
1
10001
10001

42
0
10001
10001
0
10001
10001
0

43
01110
10001
1
1
1
10001
01110

44
11100
10010
10001
10001
10001
10010
11100

45
1
1
1
0
1
1
1

46
1
1
1
0
1
1
1

47
01110
10001
1
10111
10001
10001
0

48
10001
10001
10001
1
10001
10001
10001

49
01110
00100
00100
00100
00100
00100
01110

4a
00111
00010
00010
00010
00010
10010
01100

4b
10001
10010
10100
11000
10100
10010
10001

4c
1
1
1
1
1
1
1

4d
10001
11011
10101
10101
10001
10001
10001

4e
10001
10001
11001
10101
10011
10001
10001

4f
01110
10001
10001
10001
10001
10001
01110

50
0
10001
10001
0
1
1
1

51
01110
10001
10001
10001
10101
10010
01101

52
0
10001
10001
0
10100
10010
10001

53
0
1
1
01110
1
1
0

54
1
00100
00100
00100
00100
00100
00100

55
10001
10001
10001
10001
10001
10001
01110

56
10001
10001
10001
10001
10001
01010
00100

57
10001

Re: [pygtk] Re: LCD-style display widget

2008-06-17 Thread Frédéric Mantegazza
On mardi 17 juin 2008, John Stowers wrote:

 Weird, maybe a bzr bug. What does the output with

 bzr branch http://johnstowers.co.nz/bzr/pygtk-lcd-widget/ --verbose

 say?

Absolutly nothing :o/

 Can anyone else test this. You can zoom in and out with scroll 
 wheel (and change brightness with ctrl+scroll). Double click to change
 text.

 I attached the files also.

Works fine for me :o)

-- 
   Frédéric

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


Re: [pygtk] Re: LCD-style display widget

2008-06-17 Thread Frédéric Mantegazza
On mardi 17 juin 2008, Gian Mario Tagliaretti wrote:

 2008/6/17 John Stowers [EMAIL PROTECTED]: Weird, maybe a
 bzr bug. What does the output with

  bzr branch http://johnstowers.co.nz/bzr/pygtk-lcd-widget/ --verbose
 
  say? Can anyone else test this. You can zoom in and out with scroll
  wheel (and change brightness with ctrl+scroll). Double click to change
  text.

 Works here:

 [EMAIL PROTECTED]:~/Repos$ bzr branch
 http://johnstowers.co.nz/bzr/pygtk-lcd-widget/ Branched 2 revision(s).

Ok, it seems to be a bazaar problem on my system: I tried to update another 
repository, which used to work, and it also failed...

-- 
   Frédéric

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


Re: [pygtk] Segfault importing gtk within distutils / unittest

2008-06-17 Thread Johannes Wienke

Hi again,

maybe someone can help me if I narrow the problem? I've found out that 
this segfault only occurs if one of my own extension modules that also 
link against gtk is loaded before the gtk import statement. Moreover it 
is unrelated to pyunit or distutils. What could be the problem?


Thanks in advance
Johannes


Am 06/09/2008 06:45 PM schrieb Johannes Wienke:

Hi,

I've programmed a custom distutils command to run my unit tests. The
important part looks like this:

def __runTests(self):
'''
Runs all unit tests found in the folder 'test'.
'''

print --- start run tests

# append the build path to the pythonpath
sys.path.append(self.__buildDir)

# append test path to pythonpath
sys.path.append(os.path.join(os.getcwd(), test))

testFiles = self.__findTestModules()

print --- before load tests

tests = TestLoader().loadTestsFromNames(testFiles)

print --- after load tests

t = TextTestRunner(verbosity = 1)
t.run(tests)

As you can see, I've added a few print statements to explain my problem.

Now a part of my system uses pygtk and is used by one of the unit tests
that are being loaded in the code above. The module using pygtk works
without problem - but not within the unit tests. There I get a
segmentation fault while importing gtk. The import at the top of that
module looks like this:

print --- before import pygtk
import pygtk
print --- after import pygtk
pygtk.require('2.0')
print --- after require
import gtk
print --- after import pygtk

Running the tests I get this output:

--- start run tests
--- before load tests
--- before import pygtk
--- after import pygtk
--- after require
Segmentation fault

What could be the problem? Running python 2.4 on Gentoo Linux with pygtk
2.12.0

Thanks in advance.

Johannes




signature.asc
Description: OpenPGP digital signature
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] Re: LCD-style display widget

2008-06-17 Thread Paul Malherbe





John Stowers wrote:

  On Tue, 2008-06-17 at 11:06 +0200, Frédéric Mantegazza wrote:
  
  
On mardi 17 juin 2008, John Stowers wrote:



  

  bzr branch http://johnstowers.co.nz/bzr/pygtk-lcd-widget/
  

Many thanks, but I can't get the package: bzr waits forever, after
creating the pygtk-lcd-widget/ dir and .bzr/ sub-dir...

  
  Are you sure?

I just did a fresh checkout on another pc and it worked fine
  

With this command?:

$ bzr branch http://johnstowers.co.nz/bzr/pygtk-lcd-widget/

(I'm not familiar with bazar...). As I said, some files are first 
downloaded (I can see a progressbar going to 100%), then, it does nothing, 
and does not return...

  
  
Weird, maybe a bzr bug. What does the output with 

bzr branch http://johnstowers.co.nz/bzr/pygtk-lcd-widget/ --verbose

say? Can anyone else test this. You can zoom in and out with scroll
wheel (and change brightness with ctrl+scroll). Double click to change
text.

I attached the files also.



  
  
  
  

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


Hi

I had to upgrade bzr to version .92 or later after which it worked OK.

Regards, Paul


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


Re: [pygtk] Re: LCD-style display widget

2008-06-17 Thread Frédéric Mantegazza
On mardi 17 juin 2008, Paul Malherbe wrote:

 I had to upgrade bzr to version .92 or later after which it worked OK.

I'm using the 1.5...

-- 
   Frédéric

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


Re: [pygtk] prepare-Changelog for pygtk

2008-06-17 Thread Adolfo González Blázquez
Well, i'm answering myself, because maybe this is useful to somebody.

I've got a prepare-changelog for python using Moap [1].
Just get moap from svn [2] and apply a patch [3].
And the just run: $ moap changelog prepare

Hope this helps...

-- adolfo

[1] https://thomas.apestaart.org/moap/trac
[2] svn co http://thomas.apestaart.org/moap/svn/trunk moap
[3] http://infinicode.org/code/other/moap.diff



El dom, 01-06-2008 a las 13:09 +0200, Adolfo González Blázquez escribió:
 Hello,
 
 Does anybody know a prepare-changelog script (like the one on
 svn.gnome.org/svn/releng/trunk/tools/prepare-ChangeLog.pl) but for
 parsing pygtk (or plain python) files?
 
 It's kinda tiring to write the changelogs by hand when our C brothers
 can build their changelogs using a script, doesn't it?
 
 Thanks in advance!
 
 -- adolfo
 ___
 pygtk mailing list   pygtk@daa.com.au
 http://www.daa.com.au/mailman/listinfo/pygtk
 Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


signature.asc
Description: Esta parte del mensaje está firmada	digitalmente
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


[pygtk] Erasing/Undoing in Drawable

2008-06-17 Thread Adiv
Is there a way to erase or undo something that has been drawn onto a 
gtk.gdk.Drawable? Or, if better, just moved to a different point in Drawable? I 
know the GIMP has an eraser tool, so it's gotta be possible.


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