gtksourceview2.Style

gtksourceview2.Style — Style object for gtksourceview2.View

Synopsis

class gtksourceview2.Style(gobject.GObject):
    def copy()

Ancestry

+-- gobject.GObject
    +-- gtksourceview2.Style

Properties

"background"Read-Write-Construct onlyBackground color. Default value: None.
"background-set"Read-Write-Construct onlyWhether background color is set. Default value: False.
"bold-set"Read-Write-Construct onlyWhether bold attribute is set. Default value: False.
"foreground"Read-Write-Construct onlyForeground color. Default value: None.
"foreground-set"Read-Write-Construct onlyWhether foreground color is set. Default value: False.
"italic"Read-Write-Construct onlyItalic. Default value: False.
"italic-set"Read-Write-Construct onlyWhether italic attribute is set. Default value: False.
"line-background"Read-Write-Construct onlyLine background color. Default value: None.
"line-background-set"Read-Write-Construct onlyWhether line background color is set. Default value: False.
"strikethrough"Read-Write-Construct onlyStrikethrough. Default value: False.
"strikethrough-set"Read-Write-Construct onlyWhether strikethrough attribute is set. Default value: False.
"underline"Read-Write-Construct onlyUnderline. Default value: False.
"underline-set"Read-Write-Construct onlyWhether underline attribute is set. Default value: False.

Description

Methods

gtksourceview2.Style.copy

    def copy()

Returns :

a copy of gtksourceview2.Style.

The copy() method Creates a copy of style, that is a new gtksourceview2.Style instance which has the same attributes set.