Skip to content

Commit 7e5ed1b

Browse files
fixes
1 parent 2cd794f commit 7e5ed1b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/source/api.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Example
3232
3333
uiss_str = """
3434
/* !uistylelangstr */
35-
35+
3636
.button {
3737
background-color: white;
3838
}
@@ -111,7 +111,7 @@ Like *id selectors*, it can include alphabetical characters A-Z and numbers, sep
111111
}
112112
113113
114-
This is a very powerful feature of UI Style Lang as it allows you to declare style changes to your element in the stylesheet.
114+
This is a very powerful feature of UI Style Lang as it allows you to declare style changes to your element in the stylesheet.
115115
116116
It is useful especially for creating custom widgets where styles change depending on events as in this example:
117117
@@ -196,7 +196,7 @@ UI Style Lang has support for single-line comments in the stylesheet. Multi-line
196196
Spacing
197197
-------
198198
199-
UI Style Lang enforces proper spacing around ids and property values.
199+
UI Style Lang enforces proper spacing around ids and property values.
200200
201201
202202
For example:
@@ -402,7 +402,7 @@ Sets how thick or thin characters in the text should be displayed
402402
:normal (default):
403403
Normal font weight
404404
405-
:bold:
405+
:bold:
406406
Bold font weight
407407
408408
:100 200 300 400 500 600 700 800 900 1000:
@@ -437,10 +437,10 @@ The drawing API is an abstraction of wxPython DCs. ``UIStylePDC`` is implemented
437437
UIStylePDC
438438
----------
439439
440-
The ``UIStylePDC`` class is an enhanced wrapper for the ``wx.adv.PseudoDC``, making it possible to use UI Style Lang to draw on any ``wx.Window``.
440+
The ``UIStylePDC`` class is an enhanced wrapper for the ``wx.adv.PseudoDC``, making it possible to use UI Style Lang to draw on any ``wx.Window``.
441441
442442
.. note::
443-
The normal methods from the ``wx.adv.PseudoDC`` are still accessible from ``UIStylePDC``.
443+
The normal methods from the ``wx.adv.PseudoDC`` are still accessible from ``UIStylePDC``.
444444
445445
.. py:module:: uistylelang.context.UIStylePDC
446446
.. py:currentmodule:: uistylelang.context.UIStylePDC
@@ -478,13 +478,13 @@ Native Widget API
478478
479479
The Native Widget API can be used *with* or *without* the Drawing API and vice-versa. UI Style Lang does not force usage of both as the same time.
480480
481-
The Native Widget API is an abstraction of a few of the native wxPython widgets. The widgets here are implemented as an enhanced wrappers of the corresponding widget to allow for styling (if the platform supports it).
481+
The Native Widget API is an abstraction of a few of the native wxPython widgets. The widgets here are implemented as an enhanced wrappers of the corresponding widget to allow for styling (if the platform supports it).
482482
483483
Widgets are styled using the ``name`` parameter as the *id selector*.
484484
485485
Example:
486486
487-
.. code-block:: css
487+
.. code-block::
488488
489489
# In the stylesheet.uiss file
490490
@style main-panel {
@@ -497,11 +497,11 @@ Example:
497497
app = UIStyleApp(file="stylesheet.uiss")
498498
499499
...
500-
500+
501501
pnl = UIStylePanel(frm,
502502
name="main-panel"
503503
)
504-
504+
505505
506506
UIStyleApp
507507
----------

0 commit comments

Comments
 (0)