×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    80

    Exclamation get another instance of the same object

    suppose i do i = graphics.Image.open("a.png")
    now i want to get another instance of i. but i dont want to execute graphics.Image.open("a.png") again to get the second instance.

    can we do that? how?

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: get another instance of the same object

    I think this is the closest thing: http://docs.python.org/library/copy.html

  3. #3
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    80

    Re: get another instance of the same object

    Quote Originally Posted by bogdan.galiceanu View Post
    I think this is the closest thing: http://docs.python.org/library/copy.html
    bad luck for me.... copy.copy returns only a reference of the image, not a copy
    and copy.deepcopy gives an error.....

Similar Threads

  1. access 2 instance of same class same time
    By kuddy_abc in forum Symbian
    Replies: 3
    Last Post: 2010-06-08, 03:43
  2. Multiple instance of same view.
    By anupid in forum Symbian User Interface
    Replies: 6
    Last Post: 2007-07-26, 08:45
  3. multiple instance of same view
    By anupid in forum Symbian
    Replies: 1
    Last Post: 2007-07-19, 16:35
  4. Replies: 9
    Last Post: 2007-03-21, 07:57
  5. Multiple objects all using one instance of another...?
    By SizeableBread in forum Symbian
    Replies: 1
    Last Post: 2006-10-30, 19:34

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×