alcemirfernandes / pynguin

Automatically exported from code.google.com/p/pynguin
GNU General Public License v3.0
0 stars 0 forks source link

An easy way to label or see which pynguins are which, when using multiple? #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Something as simple as overlaying its variable name would be awesome.  Thanks!

What version of the product are you using? On what operating system?
0.8, Ubuntu 9.10

Original issue reported on code.google.com by aresnick...@gmail.com on 29 Jun 2010 at 12:27

GoogleCodeExporter commented 9 years ago
It would also be kind of cool if you could make the pynguins different colors. 
I've looked at trying to change the color of items loaded from svg before and 
never was able to figure that out. There may be a way to do it though.

It's tough to label something with its "name" since any object can have 
multiple names and no one is specific to the object ...

>>> p2 = Pynguin()
>>> p3 = p2
>>> p2 = Pynguin()

Which one is p2?

Maybe they could just be numbered in order of creation.

Possibly Pynguin could have a .label() method  ...

>>> p2 = Pynguin()
>>> p2.label('bob')

Maybe default to the numbers, but add .label() also in case people want to 
label them.

Original comment by miss...@hotmail.com on 29 Jun 2010 at 1:03

GoogleCodeExporter commented 9 years ago
I like the .label() idea, (and accompanying .label) as well as the default of 
the numbering in order. . .

Original comment by aresnick...@gmail.com on 29 Jun 2010 at 3:26

GoogleCodeExporter commented 9 years ago
Actually, I think "name" might be nicer, FWIW.

Original comment by aresnick...@gmail.com on 29 Jun 2010 at 3:26

GoogleCodeExporter commented 9 years ago
Try after Revision c4732206fb6c. There is now a .label() function and a .name 
attribute for each pynguin.

Original comment by miss...@hotmail.com on 29 Jun 2011 at 12:32

GoogleCodeExporter commented 9 years ago
Fixed in version 0.11

Original comment by miss...@hotmail.com on 11 Aug 2011 at 12:53