pychess.widgets package¶
Subpackages¶
- pychess.widgets.pydock package
- Submodules
- pychess.widgets.pydock.ArrowButton module
- pychess.widgets.pydock.HighlightArea module
- pychess.widgets.pydock.OverlayWindow module
- pychess.widgets.pydock.PyDockComposite module
- pychess.widgets.pydock.PyDockLeaf module
- pychess.widgets.pydock.PyDockTop module
- pychess.widgets.pydock.StarArrowButton module
- Module contents
Submodules¶
pychess.widgets.Background module¶
Sets the application background image
-
pychess.widgets.Background.
expose
(widget, context)¶
-
pychess.widgets.Background.
giveBackground
(widget)¶
-
pychess.widgets.Background.
hexcol
(color)¶ Description : Takes a colour tuple(rgb) and returns a hex based string #rrggbb Returns : (str)
-
pychess.widgets.Background.
isDarkTheme
(widget)¶
-
pychess.widgets.Background.
newTheme
(widget, background=None)¶
pychess.widgets.BoardControl module¶
pychess.widgets.BoardView module¶
pychess.widgets.BorderBox module¶
pychess.widgets.ChainVBox module¶
pychess.widgets.ChannelsPanel module¶
pychess.widgets.ChatView module¶
pychess.widgets.ChessClock module¶
pychess.widgets.ExternalsDialog module¶
pychess.widgets.InfoBar module¶
-
class
pychess.widgets.InfoBar.
InfoBarMessageButton
(text, response_id, sensitive=True, tooltip_text='')¶ Bases:
GObject
-
get_sensitive
()¶
-
get_tooltip_text
()¶
-
set_sensitive
(sensitive)¶
-
set_tooltip_text
(tooltip_text)¶
-
sensitive
= <GObjectMock name='mock.property()' id='139752465522416'>¶
-
tooltip_text
= <GObjectMock name='mock.property()' id='139752465522416'>¶
-
-
class
pychess.widgets.InfoBar.
InfoBarNotebook
(name=None)¶ Bases:
Notebook
This is a
Gtk.Notebook
which manages InfoBarMessage objects pushed onto it via push_message() like a stack. If/when the current message at the top of the stack is responded to or dismissed by the user, the next message in the stack waiting for a response is displayed. Messages that aren’t applicable anymore can be removed from anywhere in the InfoBar message stack by calling message.dismiss()-
clear_messages
()¶
-
customGetTabLabelText
(child)¶
-
push_message
(message)¶
-
-
pychess.widgets.InfoBar.
get_message_content
(heading_text, message_text, image_stock_id)¶
pychess.widgets.InfoPanel module¶
pychess.widgets.LearnInfoBar module¶
pychess.widgets.MenuItemsDict module¶
-
class
pychess.widgets.MenuItemsDict.
GtkMenuItem
(name, sensitive=False, label=None, tooltip=None)¶ Bases:
object
-
update
()¶
-
label
¶
-
sensitive
¶
-
tooltip
¶
-
-
class
pychess.widgets.MenuItemsDict.
GtkMenuToggleButton
(name, sensitive=False, active=False, label=None)¶ Bases:
pychess.widgets.MenuItemsDict.GtkMenuItem
-
update
()¶
-
active
¶
-
-
class
pychess.widgets.MenuItemsDict.
MenuItemsDict
¶ Bases:
dict
Description: Keeps track of menubar menuitem widgets that need to be managed on a game by game basis. Each menuitem writes through its respective widget state to the GUI if we are encapsulated in the gamewidget that’s focused/infront
-
ANAL_MENU_ITEMS
= ('analyze_game1', 'analyzer_check', 'inv_analyzer_check', 'ana_combobox', 'inv_ana_combobox')¶
-
VIEW_MENU_ITEMS
= ('hint_mode', 'spy_mode')¶
-
pychess.widgets.PieceWidget module¶
pychess.widgets.PromotionDialog module¶
pychess.widgets.RecentChooser module¶
pychess.widgets.TaskerManager module¶
pychess.widgets.ViewsPanel module¶
pychess.widgets.WebKitBrowser module¶
-
class
pychess.widgets.WebKitBrowser.
WebKitBrowser
(url)¶ Bases:
object
-
change_title
(widget, data, arg)¶
-
go
(widget)¶
-
go_back
(widget)¶
-
go_forward
(widget)¶
-
refresh
(widget)¶
-
search
(widget)¶
-
-
pychess.widgets.WebKitBrowser.
open_link
(label, url)¶ Gtk.Label() can use this like label.connect(“activate-link”, open_link)
pychess.widgets.analyzegameDialog module¶
pychess.widgets.discovererDialog module¶
pychess.widgets.enginesDialog module¶
pychess.widgets.gameinfoDialog module¶
-
pychess.widgets.gameinfoDialog.
initialize
(widgets)¶
-
pychess.widgets.gameinfoDialog.
on_pick_date
(button, date_entry)¶
-
pychess.widgets.gameinfoDialog.
refresh_elo_rating_change
(widgets)¶
-
pychess.widgets.gameinfoDialog.
run
(widgets)¶
pychess.widgets.gamenanny module¶
pychess.widgets.gamewidget module¶
pychess.widgets.newGameDialog module¶
pychess.widgets.playerinfoDialog module¶
pychess.widgets.preferencesDialog module¶
pychess.widgets.tipOfTheDay module¶
Module contents¶
-
pychess.widgets.
createAlignment
(top, right, bottom, left)¶
-
pychess.widgets.
createImage
(pixbuf)¶
-
pychess.widgets.
dock_panel_tab
(title, desc, icon, button=None)¶
-
pychess.widgets.
insert_formatted
(text_view, iter, text, tag=None)¶
-
pychess.widgets.
mainwindow
()¶
-
pychess.widgets.
new_notebook
(name=None)¶