×

Discussion Board

Search:

Type: Posts; User: sogniator; Keyword(s):

Search: Search took 0.00 seconds.

  1. Replies
    23
    Views
    10,699

    Re: Image getPixel()

    i try both codes..
    i think the problem exists at that
    the second method of getting rgb value is
    based on raw data of png..but can't determine
    how pixel is indexed, so the two result not...
  2. Replies
    57
    Views
    26,450

    Re: [Announce] pygame for S60 for PyS60 1.9.x

    this is amazing..will simplify python game dev on s60 a lot..i will try
  3. Replies
    57
    Views
    26,450

    Re: [Announce] pygame for S60 for PyS60 1.9.x

    this is amazing..will simplify python game dev on s60 a lot
  4. Replies
    3
    Views
    4,529

    Re: What's wrong with my keycapture code?

    do u miss
    kc.start()?
    except ur codes are ok..
    add listend key using tuple will be ok and u may try
    kc.forwarding=1
  5. Re: [Announce] Multi-Selection Listbox Test 1.00 (sample code)

    cheers,
    u always makes nice sample codes
    appreciate..
  6. Replies
    23
    Views
    10,699

    Re: Image getPixel()

    i once used this snippets in camera motion detect script. though it works, it took time to finish, if open a large png file, to decompress it takes both memory and time
    and it differs from native...
  7. Replies
    6
    Views
    3,945

    Re: Image open resources saving best practice

    def png_loader(args):
    if type(args) == list:
    img.append([i for i in args])
    return img
    else:
    return graphics.Image.open(args)
  8. Replies
    6
    Views
    3,945

    Re: Image open resources saving best practice

    for img in img's path
    image.append(graphics.Image.open(img))

    import graphics
    container = graphics.Image.new(desired_size)
    container.blit(png,coord)

    do u mean this
  9. Replies
    23
    Views
    10,699

    Re: Image getPixel()

    hi, marcel, looking forward to ur game
    i think there's no native python function convert an rgb to grayscale
    but will the rgb2grascale convert formula help u?
    and getpixel method's return value is...
  10. Thread: globalui

    by sogniator
    Replies
    1
    Views
    4,016

    Re: globalui

    i assume u use pys60 1.4.* and keypress ext., i think u can start a new thread that simualte_key(EKeRightSoftkey,0xa5) after time x..
  11. Replies
    2
    Views
    3,264

    Re: Graphic Interface

    i think u can double-cross the line
    gI.loop()
    and try again
  12. Replies
    8
    Views
    5,626

    Re: e32dbm can not store chinese string

    i think u can either use base64.encodestring(mystr) or base64.encode(input,output)
    base64.encode function accept 2 args which has to be file objects, and the 2nd one needs to be opened with 'w' or...
  13. Replies
    8
    Views
    5,626

    Re: e32dbm can not store chinese string

    i wonder if overriding _dbencoding will help

    _dbencoding = 'utf-8'
  14. Replies
    8
    Views
    5,626

    Re: e32dbm can not store chinese string

    try 'utf-8' codec instead of 'latin-1'
  15. Thread: White screen

    by sogniator
    Replies
    6
    Views
    5,552

    Re: White screen

    or u try, not to call camera.start_finder in constructor, define a new method in ur class that calls start_finder function

    def start_vf(self):
    ...
  16. Re: Callback weirdness with image resize method [1.9.1]

    when u use a callback in resize method, the callback is passed the resized image object, so the self.thumb dose not get assigned, so
    print self.thumb.size dose not get output and self.c can't blit...
  17. Thread: White screen

    by sogniator
    Replies
    6
    Views
    5,552

    Re: White screen

    will u try this
    in __init__()

    appuifw.app.body = self.canvas = appuifw.Canvas()
    and in viewfinder callback

    self.canvas.blit(img)
Results 1 to 17 of 17
×