Public Member Functions | |
| def | __init__ |
| The Constructor. | |
| def | go_home |
| Navigate to pyjama's default page shown at startup. | |
| def | go_home_fkt |
| Pyjama's default home-function showing 10 best rated albums of this week. | |
| def | set_home_fkt |
| Set a new function to call when go_home() is called. | |
| def | read_playlist |
| Read a jamendo m3u playlist file and populates the playlist with that. | |
| def | simple_database_downloader |
| Downloads the database from jamendo and prints all messages to console. | |
| def | set_download_database_fkt |
| Sets a download function for jamendo's database. | |
| def | show_plugins |
| Show the plugin dialog. | |
| def | show_preferences |
| Show the preferences dialog. | |
| def | check_another_instance_running |
| This function can only tell if another instance is running but not, if NO other instance is running. | |
| def | quit |
| Quit some running processes usually called by window.really_quit(). | |
| def | reload_current_page |
| Reloads the current layout page. | |
| def | info |
| shows an info dialog | |
| def | error |
| Called whenever pyjama.Events.raise_event("error", *args) is fired. | |
| def | ev_plugin_loaded |
| Called whenever pyjama.Events.raise_event("pluginloaded", *args) is fired. | |
| def | set_allow_rearrange |
| Setting self.allow_rearrange. | |
| def | appendtracks |
| Add a given list of track objects to playlist. | |
| def | remove_item_from_playlist |
| Removes an item from the playlist. | |
| def | move_playlist_item |
| Moves an item in the playlist. | |
| def | add2playlist |
| Adds a single track to the playlist. | |
| def | showInfo |
| Set the Cover image and some other informations. | |
| def | setplaylist |
| Mark the currently played item and unmark the last played item. | |
| def | stop_timer |
| Empty function. | |
| def | start_timer |
| Start the gobject timer. | |
| def | start_pulsing |
| Start pulsing the progressbar. | |
| def | pulse |
| Will pulse the progressbar a step. | |
| def | stop_pulsing |
| Stops pulsing. | |
| def | timer_event |
| This event is called ever 200ms by start_timer(). | |
| def | setInfo |
| Sets the "Info" column of the statusbar to text. | |
| def | setStatus |
| Sets the "Player" column of the statusbar to text. | |
| def | notification |
| Shows a notification. | |
| def | switch_window_state |
| Iconifies the window to taskbar if its shown and shows the window when its hidden. | |
| def | get_album_image |
| Downloads and caches an album's image from jamendo. | |
Public Attributes | |
| verbose | |
| Holds a bool indicating if pyjama is running verbose. | |
| debug | |
| Holds a bool indicating if pyjama is running in debugging mode. | |
| debug_extreme | |
| Holds a bool indicating if pyjama is running in debugging extreme mode. | |
| version | |
| Hold pyjama's current version. | |
| need_attention | |
| In some cases to many windows pop up on pyjama's startup. | |
| Events | |
| Pyjama's Event class. | |
| home_fkt | |
| settings | |
| Pyjama's Settings class Use for simple general settings data will be stored in a pyjama.cfg. | |
| settingsdb | |
| Pyjama's database setting class Use this, if you need to store many values. | |
| db | |
| Database class clDB.DB. | |
| dump_tools | |
| Some database-dump tools. | |
| window | |
| The clWindow.gtkWIN reference. | |
| icon | |
| The notification TrayIcon class notification.TrayIcon. | |
| player | |
| The Audio class clGstreamer010.Player. | |
| jamendo | |
| Pyjama's class for jamendo's get2 api clJamendo.Jamendo. | |
| browser | |
| The browser class clBrowserInterfacce.Browser for handling different browser calls. | |
| layouts | |
| Pyjama's clLayouts.Layouts is referenced here it is most important for anything to show up in the main paned field. | |
| preferences | |
| Preferences. | |
| xmlrpc | |
| nocolor | |
| A boold indicating if theming is used or not. | |
| allow_rearrange | |
| Switches every 200 ms to rearrange widgets if the window size changed. | |
| home | |
| Pyjama's home directory. | |
| tvMarkedItem | |
| Stores the currently marked item. | |
| playlist_to_load | |
| If one sets this attrib to a string which is an file's uri, pyjama will load that file as a playlist and set this attrib to None again. | |
| download_database | |
| Function to call when a database should be downloaded. | |
| pulsing | |
| Bool - is the progressbar pulsing? | |
| historyBack | |
| List storing history_back items. | |
| historyForward | |
| List storing history_forward items. | |
| historyCurrent | |
| Dictionary stroing the currently shown page. | |
| playlists | |
| bookmarks | |
| plugins | |
| clPlugin.Plugins class referenced here. | |
Definition at line 105 of file clMain.py.
| def modules::clMain::main::__init__ | ( | self, | ||
| parent, | ||||
| options | ||||
| ) |
| def modules::clMain::main::add2playlist | ( | self, | ||
| track | ||||
| ) |
| def modules::clMain::main::appendtracks | ( | self, | ||
| tracks, | ||||
play = False | ||||
| ) |
| def modules::clMain::main::check_another_instance_running | ( | self | ) |
| def modules::clMain::main::error | ( | self, | ||
| error_inst, | ||||
desc = False | ||||
| ) |
| def modules::clMain::main::ev_plugin_loaded | ( | self, | ||
| name, | ||||
| version, | ||||
| order, | ||||
| mod_name | ||||
| ) |
Called whenever pyjama.Events.raise_event("pluginloaded", *args) is fired.
Prints some infos for the loaded plugin to console
| self | Object Pointer | |
| name | The plugin's full name | |
| version | The plugin's version | |
| order | Plugin's order value (see clPlugin documentation) | |
| mod_name | Plugin's file name |
| def modules::clMain::main::get_album_image | ( | self, | ||
| album_id, | ||||
size = 100 | ||||
| ) |
| def modules::clMain::main::go_home | ( | self | ) |
| def modules::clMain::main::go_home_fkt | ( | self | ) |
| def modules::clMain::main::move_playlist_item | ( | self, | ||
| s, | ||||
| d, | ||||
| before | ||||
| ) |
| def modules::clMain::main::notification | ( | self, | ||
| caption, | ||||
| text, | ||||
icon = "pyjama", |
||||
size = 100 | ||||
| ) |
| def modules::clMain::main::pulse | ( | self | ) |
| def modules::clMain::main::read_playlist | ( | self, | ||
| playlist | ||||
| ) |
| def modules::clMain::main::reload_current_page | ( | self, | ||
ev = None, |
||||
ignore_cache = False | ||||
| ) |
| def modules::clMain::main::remove_item_from_playlist | ( | self, | ||
| item | ||||
| ) |
| def modules::clMain::main::set_allow_rearrange | ( | self | ) |
| def modules::clMain::main::set_download_database_fkt | ( | self, | ||
| fkt | ||||
| ) |
| def modules::clMain::main::set_home_fkt | ( | self, | ||
| fkt | ||||
| ) |
| def modules::clMain::main::setInfo | ( | self, | ||
| text | ||||
| ) |
| def modules::clMain::main::setplaylist | ( | self, | ||
| activate_item | ||||
| ) |
| def modules::clMain::main::setStatus | ( | self, | ||
| text | ||||
| ) |
| def modules::clMain::main::show_plugins | ( | self, | ||
event = None | ||||
| ) |
| def modules::clMain::main::show_preferences | ( | self, | ||
widget = None, |
||||
name = None | ||||
| ) |
| def modules::clMain::main::showInfo | ( | self, | ||
path = None | ||||
| ) |
Set the Cover image and some other informations.
This methode is called whenever the mouse moves over the playlist.
| self | Object Pointer | |
| path | Optional path of the playlist item to set cover for. If this value is None, the currently selected item will be shown. |
| def modules::clMain::main::simple_database_downloader | ( | self, | ||
force_jamendo = False | ||||
| ) |
| def modules::clMain::main::start_pulsing | ( | self, | ||
text = "" | ||||
| ) |
| def modules::clMain::main::start_timer | ( | self | ) |
| def modules::clMain::main::stop_pulsing | ( | self | ) |
| def modules::clMain::main::stop_timer | ( | self | ) |
| def modules::clMain::main::switch_window_state | ( | self, | ||
ev1 = None | ||||
| ) |
| def modules::clMain::main::timer_event | ( | self | ) |
This event is called ever 200ms by start_timer().
This methods interacts with the player class and gets the current track position and some other data. It sets the current status and pulses the progressbar with pulse().
| self | Object Pointer |
clPlugin.Plugins class referenced here.
Loaded last to have any other class loaded for the plugins
1.5.8