Linked by Andrew Youll on Thu 30th Jun 2005 06:08 UTC, submitted by Zilin Du
General Development PySWT is a Python Binding to the IBM Eclipse SWT library, to provide Python with a cross platform native looking GUI.
Permalink for comment
To read all comments associated with this story, please click here.
re:
by Anonymous on Thu 30th Jun 2005 11:59 UTC

> One thing that puzzles me though is the memory management. SWT famously requires memory management, even on Java, a managed language. I can't tell from the samples if this is still the case with PySWT: all the sample GUIs are fairly static (i.e. they appear, do nothing, and get destroyed with the rest of the app when it dies). Does anyone know what the story is?

You're confused. Java provides memory management - not resource management. They are different. SWT doesn't need you to manage memory either, just some external, native, unmanaged resources that are allocated by the native operating system (colors, fonts, etc). Is this any different than having to remember to close a stream or database connection? It may seem silly at first (especially because Swing gets around it by emulating everything and not having to communicate with the native windowing system), but it makes sense - and the way they've implemented SWT makes it really a non issue anyway because the rules are so easy to follow.