[pygobject] gtk-demo: Wrap description strings at 80 characters
- From: Simon Feltman <sfeltman src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] gtk-demo: Wrap description strings at 80 characters
- Date: Mon, 29 Apr 2013 03:04:26 +0000 (UTC)
commit f463d7cfaf65e0f3594ec15d897325f84225f1c5
Author: Simon Feltman <sfeltman src gnome org>
Date: Sun Apr 28 19:59:35 2013 -0700
gtk-demo: Wrap description strings at 80 characters
Wrap trailing demo description strings so they are easier to read
in a programming editor. The gtk-demo itself re-wraps this using
textwrap and the Gtk.TextView dynamic wrapping.
https://bugzilla.gnome.org/show_bug.cgi?id=698547
demos/gtk-demo/demos/Entry/search_entry.py | 6 +++---
demos/gtk-demo/demos/Icon View/iconviewbasics.py | 8 ++++----
demos/gtk-demo/demos/Icon View/iconviewedit.py | 5 +++--
demos/gtk-demo/demos/Tree View/liststore.py | 5 ++++-
demos/gtk-demo/demos/images.py | 6 ++++--
demos/gtk-demo/demos/menus.py | 20 ++++++++++++++++----
demos/gtk-demo/demos/pickers.py | 4 ++--
demos/gtk-demo/demos/pixbuf.py | 5 +++--
demos/gtk-demo/demos/rotatedtext.py | 6 ++++--
9 files changed, 43 insertions(+), 22 deletions(-)
---
diff --git a/demos/gtk-demo/demos/Entry/search_entry.py b/demos/gtk-demo/demos/Entry/search_entry.py
index 905cb0e..4fc8fab 100644
--- a/demos/gtk-demo/demos/Entry/search_entry.py
+++ b/demos/gtk-demo/demos/Entry/search_entry.py
@@ -20,9 +20,9 @@
# USA
title = "Search Entry"
-description = """
-GtkEntry allows to display icons and progress information. This demo shows how to use these features in a
search entry.
- """
+description = """GtkEntry allows to display icons and progress information.
+This demo shows how to use these features in a search entry.
+"""
from gi.repository import Gtk, GObject
diff --git a/demos/gtk-demo/demos/Icon View/iconviewbasics.py b/demos/gtk-demo/demos/Icon
View/iconviewbasics.py
index c03f258..ea1ceb4 100644
--- a/demos/gtk-demo/demos/Icon View/iconviewbasics.py
+++ b/demos/gtk-demo/demos/Icon View/iconviewbasics.py
@@ -20,10 +20,10 @@
# USA
title = "Icon View Basics"
-description = """
-The GtkIconView widget is used to display and manipulate icons. It uses a GtkTreeModel for data storage, so
the list store example might be helpful.
-We also use the Gio.File API to get the icons for each file type.
- """
+description = """The GtkIconView widget is used to display and manipulate
+icons. It uses a GtkTreeModel for data storage, so the list store example might
+be helpful. We also use the Gio.File API to get the icons for each file type.
+"""
import os
diff --git a/demos/gtk-demo/demos/Icon View/iconviewedit.py b/demos/gtk-demo/demos/Icon View/iconviewedit.py
index f5fdd79..44f3ffe 100644
--- a/demos/gtk-demo/demos/Icon View/iconviewedit.py
+++ b/demos/gtk-demo/demos/Icon View/iconviewedit.py
@@ -20,8 +20,9 @@
# USA
title = "Editing and Drag-and-Drop"
-description = """
-The GtkIconView widget supports Editing and Drag-and-Drop. This example also demonstrates using the generic
GtkCellLayout interface to set up cell renderers in an icon view.
+description = """The GtkIconView widget supports Editing and Drag-and-Drop.
+This example also demonstrates using the generic GtkCellLayout interface to set
+up cell renderers in an icon view.
"""
from gi.repository import Gtk, Gdk, GdkPixbuf
diff --git a/demos/gtk-demo/demos/Tree View/liststore.py b/demos/gtk-demo/demos/Tree View/liststore.py
index c0a8e7b..b7ac57a 100644
--- a/demos/gtk-demo/demos/Tree View/liststore.py
+++ b/demos/gtk-demo/demos/Tree View/liststore.py
@@ -21,9 +21,12 @@
title = "List Store"
description = """
-The GtkListStore is used to store data in list form, to be used later on by a GtkTreeView to display it.
This demo builds a simple GtkListStore and displays it. See the Stock Browser demo for a more advanced
example.
+The GtkListStore is used to store data in list form, to be used later on by a
+GtkTreeView to display it. This demo builds a simple GtkListStore and displays
+it. See the Stock Browser demo for a more advanced example.
"""
+
from gi.repository import Gtk, GObject
diff --git a/demos/gtk-demo/demos/images.py b/demos/gtk-demo/demos/images.py
index e9a206f..b94eb32 100644
--- a/demos/gtk-demo/demos/images.py
+++ b/demos/gtk-demo/demos/images.py
@@ -20,8 +20,10 @@
# USA
title = "Images"
-description = """GtkImage is used to display an image; the image can be in a number of formats. Typically,
you load an image into a GdkPixbuf, then display the pixbuf.
-This demo code shows some of the more obscure cases, in the simple case a call to gtk_image_new_from_file()
is all you need.
+description = """GtkImage is used to display an image; the image can be in a
+number of formats. Typically, you load an image into a GdkPixbuf, then display
+the pixbuf. This demo code shows some of the more obscure cases, in the simple
+case a call to gtk_image_new_from_file() is all you need.
"""
import os
diff --git a/demos/gtk-demo/demos/menus.py b/demos/gtk-demo/demos/menus.py
index 754875a..42d5cf6 100644
--- a/demos/gtk-demo/demos/menus.py
+++ b/demos/gtk-demo/demos/menus.py
@@ -20,10 +20,22 @@
# USA
title = "Menus"
-description = """There are several widgets involved in displaying menus. The GtkMenuBar widget is a menu
bar, which normally appears horizontally at the top of an application, but can also be layed out vertically.
The GtkMenu widget is the actual menu that pops up. Both GtkMenuBar and GtkMenu are subclasses of
GtkMenuShell; a GtkMenuShell contains menu items (GtkMenuItem). Each menu item contains text and/or images
and can be selected by the user.
-There are several kinds of menu item, including plain GtkMenuItem, GtkCheckMenuItem which can be
checked/unchecked, GtkRadioMenuItem which is a check menu item that's in a mutually exclusive group,
GtkSeparatorMenuItem which is a separator bar, GtkTearoffMenuItem which allows a GtkMenu to be torn off, and
GtkImageMenuItem which can place a GtkImage or other widget next to the menu text.
-A GtkMenuItem can have a submenu, which is simply a GtkMenu to pop up when the menu item is selected.
Typically, all menu items in a menu bar have submenus.
-GtkUIManager provides a higher-level interface for creating menu bars and menus; while you can construct
menus manually, most people don't do that. There's a separate demo for GtkUIManager.
+description = """There are several widgets involved in displaying menus. The
+GtkMenuBar widget is a menu bar, which normally appears horizontally at the top
+of an application, but can also be layed out vertically. The GtkMenu widget is
+the actual menu that pops up. Both GtkMenuBar and GtkMenu are subclasses of
+GtkMenuShell; a GtkMenuShell contains menu items (GtkMenuItem). Each menu item
+contains text and/or images and can be selected by the user. There are several
+kinds of menu item, including plain GtkMenuItem, GtkCheckMenuItem which can be
+checked/unchecked, GtkRadioMenuItem which is a check menu item that's in a
+mutually exclusive group, GtkSeparatorMenuItem which is a separator bar,
+GtkTearoffMenuItem which allows a GtkMenu to be torn off, and GtkImageMenuItem
+which can place a GtkImage or other widget next to the menu text. A GtkMenuItem
+can have a submenu, which is simply a GtkMenu to pop up when the menu item is
+selected. Typically, all menu items in a menu bar have submenus. GtkUIManager
+provides a higher-level interface for creating menu bars and menus; while you
+can construct menus manually, most people don't do that. There's a separate demo
+for GtkUIManager.
"""
from gi.repository import Gtk
diff --git a/demos/gtk-demo/demos/pickers.py b/demos/gtk-demo/demos/pickers.py
index e5b6a53..f17f7d1 100644
--- a/demos/gtk-demo/demos/pickers.py
+++ b/demos/gtk-demo/demos/pickers.py
@@ -20,8 +20,8 @@
# USA
title = "Pickers"
-description = """
-These widgets are mainly intended for use in preference dialogs. They allow to select colors, fonts, files
and directories.
+description = """These widgets are mainly intended for use in preference
+dialogs. They allow to select colors, fonts, files and directories.
"""
from gi.repository import Gtk
diff --git a/demos/gtk-demo/demos/pixbuf.py b/demos/gtk-demo/demos/pixbuf.py
index 14d2ba3..a2250ba 100644
--- a/demos/gtk-demo/demos/pixbuf.py
+++ b/demos/gtk-demo/demos/pixbuf.py
@@ -20,8 +20,9 @@
# USA
title = "Pixbufs"
-description = """A GdkPixbuf represents an image, normally in RGB or RGBA format. Pixbufs are normally used
to load files from disk and perform image scaling.
- It also shows off how to use GtkDrawingArea to do a simple animation.
+description = """A GdkPixbuf represents an image, normally in RGB or RGBA
+format. Pixbufs are normally used to load files from disk and perform image
+scaling. It also shows off how to use GtkDrawingArea to do a simple animation.
Look at the Image demo for additional pixbuf usage examples.
"""
diff --git a/demos/gtk-demo/demos/rotatedtext.py b/demos/gtk-demo/demos/rotatedtext.py
index a3882c2..3985b6d 100644
--- a/demos/gtk-demo/demos/rotatedtext.py
+++ b/demos/gtk-demo/demos/rotatedtext.py
@@ -21,8 +21,10 @@
# USA
title = "Rotated Text"
-description = """This demo shows how to use PangoCairo to draw rotated and transformed text. The right pane
shows a rotated GtkLabel widget.
-In both cases, a custom PangoCairo shape renderer is installed to draw a red heard using cairo drawing
operations instead of the Unicode heart character.
+description = """This demo shows how to use PangoCairo to draw rotated and
+transformed text. The right pane shows a rotated GtkLabel widget. In both
+cases, a custom PangoCairo shape renderer is installed to draw a red heard using
+cairo drawing operations instead of the Unicode heart character.
"""
from gi.repository import Gtk, Pango, PangoCairo, Gdk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]