OpenShot Video Editor  2.0.0
Namespaces | Functions | Variables
ui_util.py File Reference

This file contains PyQt help functions, to translate the interface, load icons, and connect signals. More...

Go to the source code of this file.

Namespaces

 ui_util
 

Functions

def ui_util.center
 Center a window on the main window. More...
 
def ui_util.connect_auto_events
 Connect any events in a *.ui file with matching Python method names. More...
 
def ui_util.get_default_icon
 Get a QIcon, and fallback to default theme if OS does not support themes. More...
 
def ui_util.get_icon
 Get either the current theme icon or fallback to default theme (for custom icons). More...
 
def ui_util.init_element
 Initialize language and icons of the given element. More...
 
def ui_util.init_ui
 Initialize all child widgets and action of a window or dialog. More...
 
def ui_util.load_theme
 Load the current OS theme, or fallback to a default one. More...
 
def ui_util.load_ui
 Load a Qt *.ui file, and also load an XML parsed version. More...
 
def ui_util.search_dir
 Search for theme name. More...
 
def ui_util.setup_icon
 Using the window xml, set the icon on the given element, or if theme_name passed load that icon. More...
 
def ui_util.transfer_children
 

Variables

string ui_util.DEFAULT_THEME_NAME = "Humanity"
 

Detailed Description

This file contains PyQt help functions, to translate the interface, load icons, and connect signals.

Author
Noah Figg eggmu.nosp@m.nkee.nosp@m.@hotm.nosp@m.ail..nosp@m.com
Jonathan Thomas jonat.nosp@m.han@.nosp@m.opens.nosp@m.hot..nosp@m.org
Olivier Girard eolin.nosp@m.wen@.nosp@m.gmail.nosp@m..com

LICENSE

Copyright (c) 2008-2018 OpenShot Studios, LLC (http://www.openshotstudios.com). This file is part of OpenShot Video Editor (http://www.openshot.org), an open-source project dedicated to delivering high quality video editing and animation solutions to the world.

OpenShot Video Editor is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

OpenShot Video Editor is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with OpenShot Library. If not, see http://www.gnu.org/licenses/.

Definition in file ui_util.py.