WWTQtClient

class pywwt.qt.WWTQtClient(**kwargs: Any)[source]

Bases: BaseWWTWidget

A client to create and drive the Qt widget.

Parameters:
block_until_readybool

Tells Python to wait for WorldWide Telescope to open before proceeding with any following script (default: True).

sizetuple

Sets size of widget in pixels (default: (600, 600)).

hide_all_chromeoptional bool

Configures the WWT frontend to hide all user-interface “chrome”. Defaults to true to maintain compatibility with the historical pywwt user experience.

Methods Summary

close()

render(filename)

Saves a screenshot of the viewer's current state.

wait([duration])

Prevents WorldWide Telescope from closing once Python reaches the end of a given script.

Methods Documentation

close()[source]
render(filename)[source]

Saves a screenshot of the viewer’s current state.

Parameters:
filenamestr

The desired name of the image file to be saved.

wait(duration=None)[source]

Prevents WorldWide Telescope from closing once Python reaches the end of a given script.

Parameters:
durationint or float or None

How many seconds to wait for. By default, this waits until the Qt window is closed.