#23 No sync() method on Display

closed-invalid
nobody
None
5
2008-06-29
2007-10-29
No

>>> from Xlib.protocol.display import Display
>>> Display().sync()

But according to the manual there clearly should be a sync() method.

Discussion

  • Mike Grant

    Mike Grant - 2007-10-29

    Logged In: YES
    user_id=1175208
    Originator: NO

    Ah, wrong import - there are two Displays (the one you picked implements protocol handling). Try:

    >>> from Xlib.display import Display
    >>> Display().sync()

    Generally, you don't want to use anything from the .protocol classes.

     
  • Peter Liljenberg

    Logged In: YES
    user_id=68375
    Originator: NO

    Not the first time Xlib.display and Xlib.protocol.display is confused. My fault, as I named the stuff that way way back. It probably wont break people's code if the one in Xlib.protocol.display is renamed to something more intimidating.

     
  • Mike Grant

    Mike Grant - 2008-06-29
    • status: open --> closed-invalid
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks