[pygobject] demo: pep8 fixes
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] demo: pep8 fixes
- Date: Fri, 8 Dec 2017 15:58:20 +0000 (UTC)
commit eb2ff4362878d0e348c67c606a32e8d332e2454d
Author: Christoph Reiter <creiter src gnome org>
Date: Fri Dec 8 16:56:10 2017 +0100
demo: pep8 fixes
The demo app now gets analyzed by pep8 since it was moved to the examples.
examples/demo/demos/Css/css_accordion.py | 1 +
examples/demo/demos/Entry/entry_buffer.py | 1 +
examples/demo/demos/Entry/entry_completion.py | 1 +
examples/demo/demos/Entry/search_entry.py | 1 +
examples/demo/demos/IconView/iconviewbasics.py | 1 +
examples/demo/demos/IconView/iconviewedit.py | 1 +
examples/demo/demos/TreeView/liststore.py | 2 +
examples/demo/demos/TreeView/treemodel_filelist.py | 1 +
examples/demo/demos/TreeView/treemodel_filetree.py | 1 +
examples/demo/demos/appwindow.py | 1 +
examples/demo/demos/assistant.py | 1 +
examples/demo/demos/builder.py | 1 +
examples/demo/demos/button_box.py | 1 +
examples/demo/demos/clipboard.py | 1 +
examples/demo/demos/colorselector.py | 1 +
examples/demo/demos/combobox.py | 1 +
examples/demo/demos/dialogs.py | 1 +
examples/demo/demos/drawingarea.py | 11 +-
examples/demo/demos/expander.py | 1 +
examples/demo/demos/flowbox.py | 1332 ++++++++++----------
examples/demo/demos/images.py | 1 +
examples/demo/demos/infobars.py | 1 +
examples/demo/demos/links.py | 1 +
examples/demo/demos/menus.py | 1 +
examples/demo/demos/pickers.py | 1 +
examples/demo/demos/pixbuf.py | 1 +
examples/demo/demos/printing.py | 1 +
examples/demo/demos/rotatedtext.py | 1 +
28 files changed, 700 insertions(+), 670 deletions(-)
---
diff --git a/examples/demo/demos/Css/css_accordion.py b/examples/demo/demos/Css/css_accordion.py
index 7c6f539..2b7cddc 100644
--- a/examples/demo/demos/Css/css_accordion.py
+++ b/examples/demo/demos/Css/css_accordion.py
@@ -67,6 +67,7 @@ def main(demoapp=None):
CSSAccordionApp()
Gtk.main()
+
if __name__ == '__main__':
import os
base_path = os.path.abspath(os.path.dirname(__file__))
diff --git a/examples/demo/demos/Entry/entry_buffer.py b/examples/demo/demos/Entry/entry_buffer.py
index fbfc301..f0c04a4 100644
--- a/examples/demo/demos/Entry/entry_buffer.py
+++ b/examples/demo/demos/Entry/entry_buffer.py
@@ -67,5 +67,6 @@ def main(demoapp=None):
EntryBufferApp()
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/Entry/entry_completion.py b/examples/demo/demos/Entry/entry_completion.py
index 2a22185..107c45a 100644
--- a/examples/demo/demos/Entry/entry_completion.py
+++ b/examples/demo/demos/Entry/entry_completion.py
@@ -81,5 +81,6 @@ def main(demoapp=None):
EntryBufferApp()
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/Entry/search_entry.py b/examples/demo/demos/Entry/search_entry.py
index bdf4f57..793b81a 100644
--- a/examples/demo/demos/Entry/search_entry.py
+++ b/examples/demo/demos/Entry/search_entry.py
@@ -249,5 +249,6 @@ def main(demoapp=None):
SearchboxApp(demoapp)
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/IconView/iconviewbasics.py b/examples/demo/demos/IconView/iconviewbasics.py
index ea1ceb4..8cb71a8 100644
--- a/examples/demo/demos/IconView/iconviewbasics.py
+++ b/examples/demo/demos/IconView/iconviewbasics.py
@@ -216,5 +216,6 @@ def main(demoapp=None):
IconViewApp(demoapp)
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/IconView/iconviewedit.py b/examples/demo/demos/IconView/iconviewedit.py
index 44f3ffe..85dfa93 100644
--- a/examples/demo/demos/IconView/iconviewedit.py
+++ b/examples/demo/demos/IconView/iconviewedit.py
@@ -94,5 +94,6 @@ def main(demoapp=None):
IconviewEditApp()
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/TreeView/liststore.py b/examples/demo/demos/TreeView/liststore.py
index bad99d3..4b3daa1 100644
--- a/examples/demo/demos/TreeView/liststore.py
+++ b/examples/demo/demos/TreeView/liststore.py
@@ -37,6 +37,7 @@ class Bug:
self.severity = severity
self.description = description
+
# initial data we use to fill in the store
data = [Bug(False, 60482, "Normal", "scrollable notebooks and hidden tabs"),
Bug(False, 60620, "Critical", "gdk_window_clear_area (gdkwindow-win32.c) is not thread-safe"),
@@ -206,5 +207,6 @@ def main(demoapp=None):
ListStoreApp()
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/TreeView/treemodel_filelist.py
b/examples/demo/demos/TreeView/treemodel_filelist.py
index f3c7565..f011a47 100644
--- a/examples/demo/demos/TreeView/treemodel_filelist.py
+++ b/examples/demo/demos/TreeView/treemodel_filelist.py
@@ -230,5 +230,6 @@ def main(demoapp=None):
demo
gtk.main()
+
if __name__ == "__main__":
main()
diff --git a/examples/demo/demos/TreeView/treemodel_filetree.py
b/examples/demo/demos/TreeView/treemodel_filetree.py
index 0549436..3b43190 100644
--- a/examples/demo/demos/TreeView/treemodel_filetree.py
+++ b/examples/demo/demos/TreeView/treemodel_filetree.py
@@ -275,5 +275,6 @@ def main(demoapp=None):
demo
gtk.main()
+
if __name__ == "__main__":
main()
diff --git a/examples/demo/demos/appwindow.py b/examples/demo/demos/appwindow.py
index 60632f1..893ecc0 100644
--- a/examples/demo/demos/appwindow.py
+++ b/examples/demo/demos/appwindow.py
@@ -403,5 +403,6 @@ def main(demoapp=None):
window.show_all()
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/assistant.py b/examples/demo/demos/assistant.py
index b1d8720..9e729e9 100644
--- a/examples/demo/demos/assistant.py
+++ b/examples/demo/demos/assistant.py
@@ -130,5 +130,6 @@ def main(demoapp=None):
AssistantApp()
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/builder.py b/examples/demo/demos/builder.py
index c557d06..47e09a4 100644
--- a/examples/demo/demos/builder.py
+++ b/examples/demo/demos/builder.py
@@ -60,5 +60,6 @@ def main(demoapp=None):
BuilderApp(demoapp)
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/button_box.py b/examples/demo/demos/button_box.py
index 8c9a0bf..be94984 100644
--- a/examples/demo/demos/button_box.py
+++ b/examples/demo/demos/button_box.py
@@ -117,5 +117,6 @@ def main(demoapp=None):
ButtonBoxApp()
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/clipboard.py b/examples/demo/demos/clipboard.py
index 1058d3e..5a88828 100644
--- a/examples/demo/demos/clipboard.py
+++ b/examples/demo/demos/clipboard.py
@@ -223,5 +223,6 @@ def main(demoapp=None):
ClipboardApp()
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/colorselector.py b/examples/demo/demos/colorselector.py
index 3ad65eb..d05ca52 100644
--- a/examples/demo/demos/colorselector.py
+++ b/examples/demo/demos/colorselector.py
@@ -107,5 +107,6 @@ def main(demoapp=None):
ColorSelectorApp()
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/combobox.py b/examples/demo/demos/combobox.py
index be70d36..36034ba 100644
--- a/examples/demo/demos/combobox.py
+++ b/examples/demo/demos/combobox.py
@@ -314,5 +314,6 @@ def main(demoapp=None):
ComboboxApp(demoapp)
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/dialogs.py b/examples/demo/demos/dialogs.py
index 4c3e34a..47d6822 100644
--- a/examples/demo/demos/dialogs.py
+++ b/examples/demo/demos/dialogs.py
@@ -151,5 +151,6 @@ def main(demoapp=None):
DialogsApp()
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/drawingarea.py b/examples/demo/demos/drawingarea.py
index aea18b5..b04c41d 100644
--- a/examples/demo/demos/drawingarea.py
+++ b/examples/demo/demos/drawingarea.py
@@ -87,11 +87,11 @@ class DrawingAreaApp:
# Ask to receive events the drawing area doesn't normally
# subscribe to
- da.set_events(da.get_events()
- | Gdk.EventMask.LEAVE_NOTIFY_MASK
- | Gdk.EventMask.BUTTON_PRESS_MASK
- | Gdk.EventMask.POINTER_MOTION_MASK
- | Gdk.EventMask.POINTER_MOTION_HINT_MASK)
+ da.set_events(da.get_events() |
+ Gdk.EventMask.LEAVE_NOTIFY_MASK |
+ Gdk.EventMask.BUTTON_PRESS_MASK |
+ Gdk.EventMask.POINTER_MOTION_MASK |
+ Gdk.EventMask.POINTER_MOTION_HINT_MASK)
window.show_all()
@@ -202,5 +202,6 @@ def main(demoapp=None):
DrawingAreaApp()
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/expander.py b/examples/demo/demos/expander.py
index eb5149f..0ec149e 100644
--- a/examples/demo/demos/expander.py
+++ b/examples/demo/demos/expander.py
@@ -57,5 +57,6 @@ def main(demoapp=None):
ExpanderApp()
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/flowbox.py b/examples/demo/demos/flowbox.py
index f28a733..0485b7c 100755
--- a/examples/demo/demos/flowbox.py
+++ b/examples/demo/demos/flowbox.py
@@ -71,680 +71,682 @@ class FlowBoxApp:
def create_flowbox(self, flowbox):
colors = [
- 'AliceBlue',
- 'AntiqueWhite',
- 'AntiqueWhite1',
- 'AntiqueWhite2',
- 'AntiqueWhite3',
- 'AntiqueWhite4',
- 'aqua',
- 'aquamarine',
- 'aquamarine1',
- 'aquamarine2',
- 'aquamarine3',
- 'aquamarine4',
- 'azure',
- 'azure1',
- 'azure2',
- 'azure3',
- 'azure4',
- 'beige',
- 'bisque',
- 'bisque1',
- 'bisque2',
- 'bisque3',
- 'bisque4',
- 'black',
- 'BlanchedAlmond',
- 'blue',
- 'blue1',
- 'blue2',
- 'blue3',
- 'blue4',
- 'BlueViolet',
- 'brown',
- 'brown1',
- 'brown2',
- 'brown3',
- 'brown4',
- 'burlywood',
- 'burlywood1',
- 'burlywood2',
- 'burlywood3',
- 'burlywood4',
- 'CadetBlue',
- 'CadetBlue1',
- 'CadetBlue2',
- 'CadetBlue3',
- 'CadetBlue4',
- 'chartreuse',
- 'chartreuse1',
- 'chartreuse2',
- 'chartreuse3',
- 'chartreuse4',
- 'chocolate',
- 'chocolate1',
- 'chocolate2',
- 'chocolate3',
- 'chocolate4',
- 'coral',
- 'coral1',
- 'coral2',
- 'coral3',
- 'coral4',
- 'CornflowerBlue',
- 'cornsilk',
- 'cornsilk1',
- 'cornsilk2',
- 'cornsilk3',
- 'cornsilk4',
- 'crimson',
- 'cyan',
- 'cyan1',
- 'cyan2',
- 'cyan3',
- 'cyan4',
- 'DarkBlue',
- 'DarkCyan',
- 'DarkGoldenrod',
- 'DarkGoldenrod1',
- 'DarkGoldenrod2',
- 'DarkGoldenrod3',
- 'DarkGoldenrod4',
- 'DarkGray',
- 'DarkGreen',
- 'DarkGrey',
- 'DarkKhaki',
- 'DarkMagenta',
- 'DarkOliveGreen',
- 'DarkOliveGreen1',
- 'DarkOliveGreen2',
- 'DarkOliveGreen3',
- 'DarkOliveGreen4',
- 'DarkOrange',
- 'DarkOrange1',
- 'DarkOrange2',
- 'DarkOrange3',
- 'DarkOrange4',
- 'DarkOrchid',
- 'DarkOrchid1',
- 'DarkOrchid2',
- 'DarkOrchid3',
- 'DarkOrchid4',
- 'DarkRed',
- 'DarkSalmon',
- 'DarkSeaGreen',
- 'DarkSeaGreen1',
- 'DarkSeaGreen2',
- 'DarkSeaGreen3',
- 'DarkSeaGreen4',
- 'DarkSlateBlue',
- 'DarkSlateGray',
- 'DarkSlateGray1',
- 'DarkSlateGray2',
- 'DarkSlateGray3',
- 'DarkSlateGray4',
- 'DarkSlateGrey',
- 'DarkTurquoise',
- 'DarkViolet',
- 'DeepPink',
- 'DeepPink1',
- 'DeepPink2',
- 'DeepPink3',
- 'DeepPink4',
- 'DeepSkyBlue',
- 'DeepSkyBlue1',
- 'DeepSkyBlue2',
- 'DeepSkyBlue3',
- 'DeepSkyBlue4',
- 'DimGray',
- 'DimGrey',
- 'DodgerBlue',
- 'DodgerBlue1',
- 'DodgerBlue2',
- 'DodgerBlue3',
- 'DodgerBlue4',
- 'firebrick',
- 'firebrick1',
- 'firebrick2',
- 'firebrick3',
- 'firebrick4',
- 'FloralWhite',
- 'ForestGreen',
- 'fuchsia',
- 'gainsboro',
- 'GhostWhite',
- 'gold',
- 'gold1',
- 'gold2',
- 'gold3',
- 'gold4',
- 'goldenrod',
- 'goldenrod1',
- 'goldenrod2',
- 'goldenrod3',
- 'goldenrod4',
- 'gray',
- 'gray0',
- 'gray1',
- 'gray2',
- 'gray3',
- 'gray4',
- 'gray5',
- 'gray6',
- 'gray7',
- 'gray8',
- 'gray9',
- 'gray10',
- 'gray11',
- 'gray12',
- 'gray13',
- 'gray14',
- 'gray15',
- 'gray16',
- 'gray17',
- 'gray18',
- 'gray19',
- 'gray20',
- 'gray21',
- 'gray22',
- 'gray23',
- 'gray24',
- 'gray25',
- 'gray26',
- 'gray27',
- 'gray28',
- 'gray29',
- 'gray30',
- 'gray31',
- 'gray32',
- 'gray33',
- 'gray34',
- 'gray35',
- 'gray36',
- 'gray37',
- 'gray38',
- 'gray39',
- 'gray40',
- 'gray41',
- 'gray42',
- 'gray43',
- 'gray44',
- 'gray45',
- 'gray46',
- 'gray47',
- 'gray48',
- 'gray49',
- 'gray50',
- 'gray51',
- 'gray52',
- 'gray53',
- 'gray54',
- 'gray55',
- 'gray56',
- 'gray57',
- 'gray58',
- 'gray59',
- 'gray60',
- 'gray61',
- 'gray62',
- 'gray63',
- 'gray64',
- 'gray65',
- 'gray66',
- 'gray67',
- 'gray68',
- 'gray69',
- 'gray70',
- 'gray71',
- 'gray72',
- 'gray73',
- 'gray74',
- 'gray75',
- 'gray76',
- 'gray77',
- 'gray78',
- 'gray79',
- 'gray80',
- 'gray81',
- 'gray82',
- 'gray83',
- 'gray84',
- 'gray85',
- 'gray86',
- 'gray87',
- 'gray88',
- 'gray89',
- 'gray90',
- 'gray91',
- 'gray92',
- 'gray93',
- 'gray94',
- 'gray95',
- 'gray96',
- 'gray97',
- 'gray98',
- 'gray99',
- 'gray100',
- 'green',
- 'green1',
- 'green2',
- 'green3',
- 'green4',
- 'GreenYellow',
- 'grey',
- 'grey0',
- 'grey1',
- 'grey2',
- 'grey3',
- 'grey4',
- 'grey5',
- 'grey6',
- 'grey7',
- 'grey8',
- 'grey9',
- 'grey10',
- 'grey11',
- 'grey12',
- 'grey13',
- 'grey14',
- 'grey15',
- 'grey16',
- 'grey17',
- 'grey18',
- 'grey19',
- 'grey20',
- 'grey21',
- 'grey22',
- 'grey23',
- 'grey24',
- 'grey25',
- 'grey26',
- 'grey27',
- 'grey28',
- 'grey29',
- 'grey30',
- 'grey31',
- 'grey32',
- 'grey33',
- 'grey34',
- 'grey35',
- 'grey36',
- 'grey37',
- 'grey38',
- 'grey39',
- 'grey40',
- 'grey41',
- 'grey42',
- 'grey43',
- 'grey44',
- 'grey45',
- 'grey46',
- 'grey47',
- 'grey48',
- 'grey49',
- 'grey50',
- 'grey51',
- 'grey52',
- 'grey53',
- 'grey54',
- 'grey55',
- 'grey56',
- 'grey57',
- 'grey58',
- 'grey59',
- 'grey60',
- 'grey61',
- 'grey62',
- 'grey63',
- 'grey64',
- 'grey65',
- 'grey66',
- 'grey67',
- 'grey68',
- 'grey69',
- 'grey70',
- 'grey71',
- 'grey72',
- 'grey73',
- 'grey74',
- 'grey75',
- 'grey76',
- 'grey77',
- 'grey78',
- 'grey79',
- 'grey80',
- 'grey81',
- 'grey82',
- 'grey83',
- 'grey84',
- 'grey85',
- 'grey86',
- 'grey87',
- 'grey88',
- 'grey89',
- 'grey90',
- 'grey91',
- 'grey92',
- 'grey93',
- 'grey94',
- 'grey95',
- 'grey96',
- 'grey97',
- 'grey98',
- 'grey99',
- 'grey100',
- 'honeydew',
- 'honeydew1',
- 'honeydew2',
- 'honeydew3',
- 'honeydew4',
- 'HotPink',
- 'HotPink1',
- 'HotPink2',
- 'HotPink3',
- 'HotPink4',
- 'IndianRed',
- 'IndianRed1',
- 'IndianRed2',
- 'IndianRed3',
- 'IndianRed4',
- 'indigo',
- 'ivory',
- 'ivory1',
- 'ivory2',
- 'ivory3',
- 'ivory4',
- 'khaki',
- 'khaki1',
- 'khaki2',
- 'khaki3',
- 'khaki4',
- 'lavender',
- 'LavenderBlush',
- 'LavenderBlush1',
- 'LavenderBlush2',
- 'LavenderBlush3',
- 'LavenderBlush4',
- 'LawnGreen',
- 'LemonChiffon',
- 'LemonChiffon1',
- 'LemonChiffon2',
- 'LemonChiffon3',
- 'LemonChiffon4',
- 'LightBlue',
- 'LightBlue1',
- 'LightBlue2',
- 'LightBlue3',
- 'LightBlue4',
- 'LightCoral',
- 'LightCyan',
- 'LightCyan1',
- 'LightCyan2',
- 'LightCyan3',
- 'LightCyan4',
- 'LightGoldenrod',
- 'LightGoldenrod1',
- 'LightGoldenrod2',
- 'LightGoldenrod3',
- 'LightGoldenrod4',
- 'LightGoldenrodYellow',
- 'LightGray',
- 'LightGreen',
- 'LightGrey',
- 'LightPink',
- 'LightPink1',
- 'LightPink2',
- 'LightPink3',
- 'LightPink4',
- 'LightSalmon',
- 'LightSalmon1',
- 'LightSalmon2',
- 'LightSalmon3',
- 'LightSalmon4',
- 'LightSeaGreen',
- 'LightSkyBlue',
- 'LightSkyBlue1',
- 'LightSkyBlue2',
- 'LightSkyBlue3',
- 'LightSkyBlue4',
- 'LightSlateBlue',
- 'LightSlateGray',
- 'LightSlateGrey',
- 'LightSteelBlue',
- 'LightSteelBlue1',
- 'LightSteelBlue2',
- 'LightSteelBlue3',
- 'LightSteelBlue4',
- 'LightYellow',
- 'LightYellow1',
- 'LightYellow2',
- 'LightYellow3',
- 'LightYellow4',
- 'lime',
- 'LimeGreen',
- 'linen',
- 'magenta',
- 'magenta1',
- 'magenta2',
- 'magenta3',
- 'magenta4',
- 'maroon',
- 'maroon1',
- 'maroon2',
- 'maroon3',
- 'maroon4',
- 'MediumAquamarine',
- 'MediumBlue',
- 'MediumOrchid',
- 'MediumOrchid1',
- 'MediumOrchid2',
- 'MediumOrchid3',
- 'MediumOrchid4',
- 'MediumPurple',
- 'MediumPurple1',
- 'MediumPurple2',
- 'MediumPurple3',
- 'MediumPurple4',
- 'MediumSeaGreen',
- 'MediumSlateBlue',
- 'MediumSpringGreen',
- 'MediumTurquoise',
- 'MediumVioletRed',
- 'MidnightBlue',
- 'MintCream',
- 'MistyRose',
- 'MistyRose1',
- 'MistyRose2',
- 'MistyRose3',
- 'MistyRose4',
- 'moccasin',
- 'NavajoWhite',
- 'NavajoWhite1',
- 'NavajoWhite2',
- 'NavajoWhite3',
- 'NavajoWhite4',
- 'navy',
- 'NavyBlue',
- 'OldLace',
- 'olive',
- 'OliveDrab',
- 'OliveDrab1',
- 'OliveDrab2',
- 'OliveDrab3',
- 'OliveDrab4',
- 'orange',
- 'orange1',
- 'orange2',
- 'orange3',
- 'orange4',
- 'OrangeRed',
- 'OrangeRed1',
- 'OrangeRed2',
- 'OrangeRed3',
- 'OrangeRed4',
- 'orchid',
- 'orchid1',
- 'orchid2',
- 'orchid3',
- 'orchid4',
- 'PaleGoldenrod',
- 'PaleGreen',
- 'PaleGreen1',
- 'PaleGreen2',
- 'PaleGreen3',
- 'PaleGreen4',
- 'PaleTurquoise',
- 'PaleTurquoise1',
- 'PaleTurquoise2',
- 'PaleTurquoise3',
- 'PaleTurquoise4',
- 'PaleVioletRed',
- 'PaleVioletRed1',
- 'PaleVioletRed2',
- 'PaleVioletRed3',
- 'PaleVioletRed4',
- 'PapayaWhip',
- 'PeachPuff',
- 'PeachPuff1',
- 'PeachPuff2',
- 'PeachPuff3',
- 'PeachPuff4',
- 'peru',
- 'pink',
- 'pink1',
- 'pink2',
- 'pink3',
- 'pink4',
- 'plum',
- 'plum1',
- 'plum2',
- 'plum3',
- 'plum4',
- 'PowderBlue',
- 'purple',
- 'purple1',
- 'purple2',
- 'purple3',
- 'purple4',
- 'red',
- 'red1',
- 'red2',
- 'red3',
- 'red4',
- 'RosyBrown',
- 'RosyBrown1',
- 'RosyBrown2',
- 'RosyBrown3',
- 'RosyBrown4',
- 'RoyalBlue',
- 'RoyalBlue1',
- 'RoyalBlue2',
- 'RoyalBlue3',
- 'RoyalBlue4',
- 'SaddleBrown',
- 'salmon',
- 'salmon1',
- 'salmon2',
- 'salmon3',
- 'salmon4',
- 'SandyBrown',
- 'SeaGreen',
- 'SeaGreen1',
- 'SeaGreen2',
- 'SeaGreen3',
- 'SeaGreen4',
- 'seashell',
- 'seashell1',
- 'seashell2',
- 'seashell3',
- 'seashell4',
- 'sienna',
- 'sienna1',
- 'sienna2',
- 'sienna3',
- 'sienna4',
- 'silver',
- 'SkyBlue',
- 'SkyBlue1',
- 'SkyBlue2',
- 'SkyBlue3',
- 'SkyBlue4',
- 'SlateBlue',
- 'SlateBlue1',
- 'SlateBlue2',
- 'SlateBlue3',
- 'SlateBlue4',
- 'SlateGray',
- 'SlateGray1',
- 'SlateGray2',
- 'SlateGray3',
- 'SlateGray4',
- 'SlateGrey',
- 'snow',
- 'snow1',
- 'snow2',
- 'snow3',
- 'snow4',
- 'SpringGreen',
- 'SpringGreen1',
- 'SpringGreen2',
- 'SpringGreen3',
- 'SpringGreen4',
- 'SteelBlue',
- 'SteelBlue1',
- 'SteelBlue2',
- 'SteelBlue3',
- 'SteelBlue4',
- 'tan',
- 'tan1',
- 'tan2',
- 'tan3',
- 'tan4',
- 'teal',
- 'thistle',
- 'thistle1',
- 'thistle2',
- 'thistle3',
- 'thistle4',
- 'tomato',
- 'tomato1',
- 'tomato2',
- 'tomato3',
- 'tomato4',
- 'turquoise',
- 'turquoise1',
- 'turquoise2',
- 'turquoise3',
- 'turquoise4',
- 'violet',
- 'VioletRed',
- 'VioletRed1',
- 'VioletRed2',
- 'VioletRed3',
- 'VioletRed4',
- 'wheat',
- 'wheat1',
- 'wheat2',
- 'wheat3',
- 'wheat4',
- 'white',
- 'WhiteSmoke',
- 'yellow',
- 'yellow1',
- 'yellow2',
- 'yellow3',
- 'yellow4',
- 'YellowGreen'
+ 'AliceBlue',
+ 'AntiqueWhite',
+ 'AntiqueWhite1',
+ 'AntiqueWhite2',
+ 'AntiqueWhite3',
+ 'AntiqueWhite4',
+ 'aqua',
+ 'aquamarine',
+ 'aquamarine1',
+ 'aquamarine2',
+ 'aquamarine3',
+ 'aquamarine4',
+ 'azure',
+ 'azure1',
+ 'azure2',
+ 'azure3',
+ 'azure4',
+ 'beige',
+ 'bisque',
+ 'bisque1',
+ 'bisque2',
+ 'bisque3',
+ 'bisque4',
+ 'black',
+ 'BlanchedAlmond',
+ 'blue',
+ 'blue1',
+ 'blue2',
+ 'blue3',
+ 'blue4',
+ 'BlueViolet',
+ 'brown',
+ 'brown1',
+ 'brown2',
+ 'brown3',
+ 'brown4',
+ 'burlywood',
+ 'burlywood1',
+ 'burlywood2',
+ 'burlywood3',
+ 'burlywood4',
+ 'CadetBlue',
+ 'CadetBlue1',
+ 'CadetBlue2',
+ 'CadetBlue3',
+ 'CadetBlue4',
+ 'chartreuse',
+ 'chartreuse1',
+ 'chartreuse2',
+ 'chartreuse3',
+ 'chartreuse4',
+ 'chocolate',
+ 'chocolate1',
+ 'chocolate2',
+ 'chocolate3',
+ 'chocolate4',
+ 'coral',
+ 'coral1',
+ 'coral2',
+ 'coral3',
+ 'coral4',
+ 'CornflowerBlue',
+ 'cornsilk',
+ 'cornsilk1',
+ 'cornsilk2',
+ 'cornsilk3',
+ 'cornsilk4',
+ 'crimson',
+ 'cyan',
+ 'cyan1',
+ 'cyan2',
+ 'cyan3',
+ 'cyan4',
+ 'DarkBlue',
+ 'DarkCyan',
+ 'DarkGoldenrod',
+ 'DarkGoldenrod1',
+ 'DarkGoldenrod2',
+ 'DarkGoldenrod3',
+ 'DarkGoldenrod4',
+ 'DarkGray',
+ 'DarkGreen',
+ 'DarkGrey',
+ 'DarkKhaki',
+ 'DarkMagenta',
+ 'DarkOliveGreen',
+ 'DarkOliveGreen1',
+ 'DarkOliveGreen2',
+ 'DarkOliveGreen3',
+ 'DarkOliveGreen4',
+ 'DarkOrange',
+ 'DarkOrange1',
+ 'DarkOrange2',
+ 'DarkOrange3',
+ 'DarkOrange4',
+ 'DarkOrchid',
+ 'DarkOrchid1',
+ 'DarkOrchid2',
+ 'DarkOrchid3',
+ 'DarkOrchid4',
+ 'DarkRed',
+ 'DarkSalmon',
+ 'DarkSeaGreen',
+ 'DarkSeaGreen1',
+ 'DarkSeaGreen2',
+ 'DarkSeaGreen3',
+ 'DarkSeaGreen4',
+ 'DarkSlateBlue',
+ 'DarkSlateGray',
+ 'DarkSlateGray1',
+ 'DarkSlateGray2',
+ 'DarkSlateGray3',
+ 'DarkSlateGray4',
+ 'DarkSlateGrey',
+ 'DarkTurquoise',
+ 'DarkViolet',
+ 'DeepPink',
+ 'DeepPink1',
+ 'DeepPink2',
+ 'DeepPink3',
+ 'DeepPink4',
+ 'DeepSkyBlue',
+ 'DeepSkyBlue1',
+ 'DeepSkyBlue2',
+ 'DeepSkyBlue3',
+ 'DeepSkyBlue4',
+ 'DimGray',
+ 'DimGrey',
+ 'DodgerBlue',
+ 'DodgerBlue1',
+ 'DodgerBlue2',
+ 'DodgerBlue3',
+ 'DodgerBlue4',
+ 'firebrick',
+ 'firebrick1',
+ 'firebrick2',
+ 'firebrick3',
+ 'firebrick4',
+ 'FloralWhite',
+ 'ForestGreen',
+ 'fuchsia',
+ 'gainsboro',
+ 'GhostWhite',
+ 'gold',
+ 'gold1',
+ 'gold2',
+ 'gold3',
+ 'gold4',
+ 'goldenrod',
+ 'goldenrod1',
+ 'goldenrod2',
+ 'goldenrod3',
+ 'goldenrod4',
+ 'gray',
+ 'gray0',
+ 'gray1',
+ 'gray2',
+ 'gray3',
+ 'gray4',
+ 'gray5',
+ 'gray6',
+ 'gray7',
+ 'gray8',
+ 'gray9',
+ 'gray10',
+ 'gray11',
+ 'gray12',
+ 'gray13',
+ 'gray14',
+ 'gray15',
+ 'gray16',
+ 'gray17',
+ 'gray18',
+ 'gray19',
+ 'gray20',
+ 'gray21',
+ 'gray22',
+ 'gray23',
+ 'gray24',
+ 'gray25',
+ 'gray26',
+ 'gray27',
+ 'gray28',
+ 'gray29',
+ 'gray30',
+ 'gray31',
+ 'gray32',
+ 'gray33',
+ 'gray34',
+ 'gray35',
+ 'gray36',
+ 'gray37',
+ 'gray38',
+ 'gray39',
+ 'gray40',
+ 'gray41',
+ 'gray42',
+ 'gray43',
+ 'gray44',
+ 'gray45',
+ 'gray46',
+ 'gray47',
+ 'gray48',
+ 'gray49',
+ 'gray50',
+ 'gray51',
+ 'gray52',
+ 'gray53',
+ 'gray54',
+ 'gray55',
+ 'gray56',
+ 'gray57',
+ 'gray58',
+ 'gray59',
+ 'gray60',
+ 'gray61',
+ 'gray62',
+ 'gray63',
+ 'gray64',
+ 'gray65',
+ 'gray66',
+ 'gray67',
+ 'gray68',
+ 'gray69',
+ 'gray70',
+ 'gray71',
+ 'gray72',
+ 'gray73',
+ 'gray74',
+ 'gray75',
+ 'gray76',
+ 'gray77',
+ 'gray78',
+ 'gray79',
+ 'gray80',
+ 'gray81',
+ 'gray82',
+ 'gray83',
+ 'gray84',
+ 'gray85',
+ 'gray86',
+ 'gray87',
+ 'gray88',
+ 'gray89',
+ 'gray90',
+ 'gray91',
+ 'gray92',
+ 'gray93',
+ 'gray94',
+ 'gray95',
+ 'gray96',
+ 'gray97',
+ 'gray98',
+ 'gray99',
+ 'gray100',
+ 'green',
+ 'green1',
+ 'green2',
+ 'green3',
+ 'green4',
+ 'GreenYellow',
+ 'grey',
+ 'grey0',
+ 'grey1',
+ 'grey2',
+ 'grey3',
+ 'grey4',
+ 'grey5',
+ 'grey6',
+ 'grey7',
+ 'grey8',
+ 'grey9',
+ 'grey10',
+ 'grey11',
+ 'grey12',
+ 'grey13',
+ 'grey14',
+ 'grey15',
+ 'grey16',
+ 'grey17',
+ 'grey18',
+ 'grey19',
+ 'grey20',
+ 'grey21',
+ 'grey22',
+ 'grey23',
+ 'grey24',
+ 'grey25',
+ 'grey26',
+ 'grey27',
+ 'grey28',
+ 'grey29',
+ 'grey30',
+ 'grey31',
+ 'grey32',
+ 'grey33',
+ 'grey34',
+ 'grey35',
+ 'grey36',
+ 'grey37',
+ 'grey38',
+ 'grey39',
+ 'grey40',
+ 'grey41',
+ 'grey42',
+ 'grey43',
+ 'grey44',
+ 'grey45',
+ 'grey46',
+ 'grey47',
+ 'grey48',
+ 'grey49',
+ 'grey50',
+ 'grey51',
+ 'grey52',
+ 'grey53',
+ 'grey54',
+ 'grey55',
+ 'grey56',
+ 'grey57',
+ 'grey58',
+ 'grey59',
+ 'grey60',
+ 'grey61',
+ 'grey62',
+ 'grey63',
+ 'grey64',
+ 'grey65',
+ 'grey66',
+ 'grey67',
+ 'grey68',
+ 'grey69',
+ 'grey70',
+ 'grey71',
+ 'grey72',
+ 'grey73',
+ 'grey74',
+ 'grey75',
+ 'grey76',
+ 'grey77',
+ 'grey78',
+ 'grey79',
+ 'grey80',
+ 'grey81',
+ 'grey82',
+ 'grey83',
+ 'grey84',
+ 'grey85',
+ 'grey86',
+ 'grey87',
+ 'grey88',
+ 'grey89',
+ 'grey90',
+ 'grey91',
+ 'grey92',
+ 'grey93',
+ 'grey94',
+ 'grey95',
+ 'grey96',
+ 'grey97',
+ 'grey98',
+ 'grey99',
+ 'grey100',
+ 'honeydew',
+ 'honeydew1',
+ 'honeydew2',
+ 'honeydew3',
+ 'honeydew4',
+ 'HotPink',
+ 'HotPink1',
+ 'HotPink2',
+ 'HotPink3',
+ 'HotPink4',
+ 'IndianRed',
+ 'IndianRed1',
+ 'IndianRed2',
+ 'IndianRed3',
+ 'IndianRed4',
+ 'indigo',
+ 'ivory',
+ 'ivory1',
+ 'ivory2',
+ 'ivory3',
+ 'ivory4',
+ 'khaki',
+ 'khaki1',
+ 'khaki2',
+ 'khaki3',
+ 'khaki4',
+ 'lavender',
+ 'LavenderBlush',
+ 'LavenderBlush1',
+ 'LavenderBlush2',
+ 'LavenderBlush3',
+ 'LavenderBlush4',
+ 'LawnGreen',
+ 'LemonChiffon',
+ 'LemonChiffon1',
+ 'LemonChiffon2',
+ 'LemonChiffon3',
+ 'LemonChiffon4',
+ 'LightBlue',
+ 'LightBlue1',
+ 'LightBlue2',
+ 'LightBlue3',
+ 'LightBlue4',
+ 'LightCoral',
+ 'LightCyan',
+ 'LightCyan1',
+ 'LightCyan2',
+ 'LightCyan3',
+ 'LightCyan4',
+ 'LightGoldenrod',
+ 'LightGoldenrod1',
+ 'LightGoldenrod2',
+ 'LightGoldenrod3',
+ 'LightGoldenrod4',
+ 'LightGoldenrodYellow',
+ 'LightGray',
+ 'LightGreen',
+ 'LightGrey',
+ 'LightPink',
+ 'LightPink1',
+ 'LightPink2',
+ 'LightPink3',
+ 'LightPink4',
+ 'LightSalmon',
+ 'LightSalmon1',
+ 'LightSalmon2',
+ 'LightSalmon3',
+ 'LightSalmon4',
+ 'LightSeaGreen',
+ 'LightSkyBlue',
+ 'LightSkyBlue1',
+ 'LightSkyBlue2',
+ 'LightSkyBlue3',
+ 'LightSkyBlue4',
+ 'LightSlateBlue',
+ 'LightSlateGray',
+ 'LightSlateGrey',
+ 'LightSteelBlue',
+ 'LightSteelBlue1',
+ 'LightSteelBlue2',
+ 'LightSteelBlue3',
+ 'LightSteelBlue4',
+ 'LightYellow',
+ 'LightYellow1',
+ 'LightYellow2',
+ 'LightYellow3',
+ 'LightYellow4',
+ 'lime',
+ 'LimeGreen',
+ 'linen',
+ 'magenta',
+ 'magenta1',
+ 'magenta2',
+ 'magenta3',
+ 'magenta4',
+ 'maroon',
+ 'maroon1',
+ 'maroon2',
+ 'maroon3',
+ 'maroon4',
+ 'MediumAquamarine',
+ 'MediumBlue',
+ 'MediumOrchid',
+ 'MediumOrchid1',
+ 'MediumOrchid2',
+ 'MediumOrchid3',
+ 'MediumOrchid4',
+ 'MediumPurple',
+ 'MediumPurple1',
+ 'MediumPurple2',
+ 'MediumPurple3',
+ 'MediumPurple4',
+ 'MediumSeaGreen',
+ 'MediumSlateBlue',
+ 'MediumSpringGreen',
+ 'MediumTurquoise',
+ 'MediumVioletRed',
+ 'MidnightBlue',
+ 'MintCream',
+ 'MistyRose',
+ 'MistyRose1',
+ 'MistyRose2',
+ 'MistyRose3',
+ 'MistyRose4',
+ 'moccasin',
+ 'NavajoWhite',
+ 'NavajoWhite1',
+ 'NavajoWhite2',
+ 'NavajoWhite3',
+ 'NavajoWhite4',
+ 'navy',
+ 'NavyBlue',
+ 'OldLace',
+ 'olive',
+ 'OliveDrab',
+ 'OliveDrab1',
+ 'OliveDrab2',
+ 'OliveDrab3',
+ 'OliveDrab4',
+ 'orange',
+ 'orange1',
+ 'orange2',
+ 'orange3',
+ 'orange4',
+ 'OrangeRed',
+ 'OrangeRed1',
+ 'OrangeRed2',
+ 'OrangeRed3',
+ 'OrangeRed4',
+ 'orchid',
+ 'orchid1',
+ 'orchid2',
+ 'orchid3',
+ 'orchid4',
+ 'PaleGoldenrod',
+ 'PaleGreen',
+ 'PaleGreen1',
+ 'PaleGreen2',
+ 'PaleGreen3',
+ 'PaleGreen4',
+ 'PaleTurquoise',
+ 'PaleTurquoise1',
+ 'PaleTurquoise2',
+ 'PaleTurquoise3',
+ 'PaleTurquoise4',
+ 'PaleVioletRed',
+ 'PaleVioletRed1',
+ 'PaleVioletRed2',
+ 'PaleVioletRed3',
+ 'PaleVioletRed4',
+ 'PapayaWhip',
+ 'PeachPuff',
+ 'PeachPuff1',
+ 'PeachPuff2',
+ 'PeachPuff3',
+ 'PeachPuff4',
+ 'peru',
+ 'pink',
+ 'pink1',
+ 'pink2',
+ 'pink3',
+ 'pink4',
+ 'plum',
+ 'plum1',
+ 'plum2',
+ 'plum3',
+ 'plum4',
+ 'PowderBlue',
+ 'purple',
+ 'purple1',
+ 'purple2',
+ 'purple3',
+ 'purple4',
+ 'red',
+ 'red1',
+ 'red2',
+ 'red3',
+ 'red4',
+ 'RosyBrown',
+ 'RosyBrown1',
+ 'RosyBrown2',
+ 'RosyBrown3',
+ 'RosyBrown4',
+ 'RoyalBlue',
+ 'RoyalBlue1',
+ 'RoyalBlue2',
+ 'RoyalBlue3',
+ 'RoyalBlue4',
+ 'SaddleBrown',
+ 'salmon',
+ 'salmon1',
+ 'salmon2',
+ 'salmon3',
+ 'salmon4',
+ 'SandyBrown',
+ 'SeaGreen',
+ 'SeaGreen1',
+ 'SeaGreen2',
+ 'SeaGreen3',
+ 'SeaGreen4',
+ 'seashell',
+ 'seashell1',
+ 'seashell2',
+ 'seashell3',
+ 'seashell4',
+ 'sienna',
+ 'sienna1',
+ 'sienna2',
+ 'sienna3',
+ 'sienna4',
+ 'silver',
+ 'SkyBlue',
+ 'SkyBlue1',
+ 'SkyBlue2',
+ 'SkyBlue3',
+ 'SkyBlue4',
+ 'SlateBlue',
+ 'SlateBlue1',
+ 'SlateBlue2',
+ 'SlateBlue3',
+ 'SlateBlue4',
+ 'SlateGray',
+ 'SlateGray1',
+ 'SlateGray2',
+ 'SlateGray3',
+ 'SlateGray4',
+ 'SlateGrey',
+ 'snow',
+ 'snow1',
+ 'snow2',
+ 'snow3',
+ 'snow4',
+ 'SpringGreen',
+ 'SpringGreen1',
+ 'SpringGreen2',
+ 'SpringGreen3',
+ 'SpringGreen4',
+ 'SteelBlue',
+ 'SteelBlue1',
+ 'SteelBlue2',
+ 'SteelBlue3',
+ 'SteelBlue4',
+ 'tan',
+ 'tan1',
+ 'tan2',
+ 'tan3',
+ 'tan4',
+ 'teal',
+ 'thistle',
+ 'thistle1',
+ 'thistle2',
+ 'thistle3',
+ 'thistle4',
+ 'tomato',
+ 'tomato1',
+ 'tomato2',
+ 'tomato3',
+ 'tomato4',
+ 'turquoise',
+ 'turquoise1',
+ 'turquoise2',
+ 'turquoise3',
+ 'turquoise4',
+ 'violet',
+ 'VioletRed',
+ 'VioletRed1',
+ 'VioletRed2',
+ 'VioletRed3',
+ 'VioletRed4',
+ 'wheat',
+ 'wheat1',
+ 'wheat2',
+ 'wheat3',
+ 'wheat4',
+ 'white',
+ 'WhiteSmoke',
+ 'yellow',
+ 'yellow1',
+ 'yellow2',
+ 'yellow3',
+ 'yellow4',
+ 'YellowGreen',
]
for color in colors:
button = self.color_swatch_new(color)
flowbox.add(button)
+
def main(demoapp=None):
FlowBoxApp()
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/images.py b/examples/demo/demos/images.py
index 3dac4cc..80c99af 100644
--- a/examples/demo/demos/images.py
+++ b/examples/demo/demos/images.py
@@ -300,5 +300,6 @@ def main(demoapp=None):
ImagesApp()
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/infobars.py b/examples/demo/demos/infobars.py
index c36de2b..b8a1dc7 100644
--- a/examples/demo/demos/infobars.py
+++ b/examples/demo/demos/infobars.py
@@ -98,5 +98,6 @@ def main(demoapp=None):
InfobarApp()
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/links.py b/examples/demo/demos/links.py
index e907abd..c6d331d 100644
--- a/examples/demo/demos/links.py
+++ b/examples/demo/demos/links.py
@@ -72,5 +72,6 @@ def main(demoapp=None):
LinksApp()
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/menus.py b/examples/demo/demos/menus.py
index fbc2daa..7cf2e57 100644
--- a/examples/demo/demos/menus.py
+++ b/examples/demo/demos/menus.py
@@ -129,5 +129,6 @@ def main(demoapp=None):
MenusApp()
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/pickers.py b/examples/demo/demos/pickers.py
index 4d5347f..d8a9c75 100644
--- a/examples/demo/demos/pickers.py
+++ b/examples/demo/demos/pickers.py
@@ -72,5 +72,6 @@ def main(demoapp=None):
PickersApp()
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/pixbuf.py b/examples/demo/demos/pixbuf.py
index 4f3329b..c213584 100644
--- a/examples/demo/demos/pixbuf.py
+++ b/examples/demo/demos/pixbuf.py
@@ -179,5 +179,6 @@ def main(demoapp=None):
PixbufApp()
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/printing.py b/examples/demo/demos/printing.py
index b476e30..6e68037 100644
--- a/examples/demo/demos/printing.py
+++ b/examples/demo/demos/printing.py
@@ -175,5 +175,6 @@ def main(demoapp=None):
GLib.idle_add(app.run, demoapp.window)
Gtk.main()
+
if __name__ == '__main__':
main()
diff --git a/examples/demo/demos/rotatedtext.py b/examples/demo/demos/rotatedtext.py
index 232f9fd..d47b1cf 100644
--- a/examples/demo/demos/rotatedtext.py
+++ b/examples/demo/demos/rotatedtext.py
@@ -194,5 +194,6 @@ def main(demoapp=None):
RotatedTextApp()
Gtk.main()
+
if __name__ == '__main__':
main()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]