Module-wide functions¶
-
kPyQt.kFactory(keyword, new_class=<class 'kPyQt.Keyword.Keyword'>, *args)¶ The keyword argument should be a
ktl.Keywordinstance; the remainder of the arguments passed to this function will be passed to the new_classKeywordtype. AllKeywordinstances created by this method will be cached indefinitely and will not be deallocated; if a cached instance is available it will be returned instead of creating a new instance.Keywordinstances can always be created directly instead of using this factory function, but care should be taken to save a reference to any created instances, otherwise they’ll get garbage collected and any connected signals won’t fire any more.For convenience this method can be referenced via
kPyQt.kFactory().
-
kPyQt.run(application)¶ Process pending callback (and other) events queued for foreground processing. The execution of
Event.process()is what handles our queue; that method re-invokes itself on a timer. Once that handler is running in the background this method will invoke_exec()for the passed-in QtWidgets.QApplication application instance. This call will not exit until the application itself exits; thus,run()should always be the last call yourkPyQtGUI does before it expects to run indefinitely.
-
kPyQt.version()¶ Return a version number for this module. The version number is computed by multiplying the major CVS revision of each individual component by 1,000, directly adding the minor version, and summing the results. SVN revision numbers are strictly added.