Package Skype4Py :: Package api :: Module posix_x11
[frames] | no frames]

Module posix_x11

source code

Low level Skype for Linux interface implemented using XWindows messaging. Uses direct Xlib calls through ctypes module.

This module handles the options that you can pass to Skype.__init__ for Linux machines when the transport is set to X11.

No further options are currently supported.

Warning PyGTK framework users

The multithreaded architecture of Skype4Py requires a special treatment if the Xlib transport is combined with PyGTK GUI framework.

The following code has to be called at the top of your script, before PyGTK is even imported.

from Skype4Py.api.posix_x11 import threads_init
threads_init()

This function enables multithreading support in Xlib and GDK. If not done here, this is enabled for Xlib library when the Skype object is instantiated. If your script imports the PyGTK module, doing this so late may lead to a segmentation fault when the GUI is shown on the screen.

A remedy is to enable the multithreading support before PyGTK is imported by calling the threads_init function.

Classes
  SkypeAPI
Functions
 
threads_init(gtk=True)
Enables multithreading support in Xlib and PyGTK.
source code
Function Details

threads_init(gtk=True)

source code 
Enables multithreading support in Xlib and PyGTK. See the module docstring for more info.
Parameters:
  • gtk (bool) - May be set to False to skip the PyGTK module.