Re: [Tutor] Confirmation about __init__()
Robert wrote: > I have read quite a bit in the past 2 months, ( I have also looked at codes) > At this point, I think I understand well what __init__() is and does - > But, I have yet to see this *specifically* spelled out about the the > __init__ method for a Class; > > It is OPTIONAL, correct ? In a manner of speaking, that's correct. You'll get a basic default initialization (and inherit the __init__() from your superclass(es) if your new class is derived from another one. You just create your own __init__() if you have something you need to set up, and/or need to call the superclass __init__() in a special way. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] Confirmation about __init__()
I have read quite a bit in the past 2 months, ( I have also looked at codes) At this point, I think I understand well what __init__() is and does - But, I have yet to see this *specifically* spelled out about the the __init__ method for a Class; It is OPTIONAL, correct ? if I have NO start values/variables to set, no Base Class __init__ to call --- the __init__ method is NOT required, correct ? thanks ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Images on Python 3k
"Luhmann" wrote I have only started using python after Py3 was released, so this is is the only version I know. I have tried to make my code work in Python 2 so I could use PIL, This is one of the biggest barriers to adopting Python 3. Until PIL gets ported it's a non starter for many folks. And why Tk doesn't support formats other than GIF and PPM for its "PhotoImage" widget is a long standing mystery! Thee has been much talk of supporting JPG but nothing has ever materialised. Alan G. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] Images on Python 3k
Hello List, Does anyone know of a way simple way to display JPG and PNG images on python 3? My program uses tkinter, and currently my solution is to use ImageMagick's convert through std to convert the images to gif. However the conversion is too time consuming. I have only started using python after Py3 was released, so this is is the only version I know. I have tried to make my code work in Python 2 so I could use PIL, but I came across many bugs to which I could not readily find a solution, and it seems it would take me a long time to get it fixed. Découvrez les photos les plus intéressantes du jour. http://www.flickr.com/explore/interesting/7days/___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor