#3 Interface support info

open
nobody
None
5
2003-02-26
2003-02-26
Michael Dubner
No

From my point of view there must be one severe
enhancement to interface - flags of what features
currently loaded backend do supports. For example some
interfaces do support changing attributes of objects
from threads other that GUI worker thread (i.e. thread
that running Application.run()) others not.
anygui should contain flag for this case - like DB-API2
does.
It may be theived from DB-API:
threadsafety = 0 #only one thread can work with this
backend
threadsafety = 1 #only thread that created this Window
can work with attributes of controls
threadsafety = 2 #only thread that created control can
work with attributes
threadsafety = 3 #backend _is_ thread safe

Discussion

  • Logged In: NO

    Also following attributes can be very useful (names are
    self-explaining):
    unicodesupport
    displaycharset (if unicodesupport is 0 or default
    conversion, if unknown should be set to 'ascii')
    usercanresize (i.e. full-screen guis can set this to 0)
    colordepth