6 |
# Read the file COPYING coming with Thuban for details. |
# Read the file COPYING coming with Thuban for details. |
7 |
|
|
8 |
from Thuban.Model.color import Color |
from Thuban.Model.color import Color |
9 |
from wxPython.wx import wxColour |
from wxPython.wx import wxColour, \ |
10 |
|
wxBeginBusyCursor, wxEndBusyCursor, wxSafeYield |
11 |
|
|
12 |
def Color2wxColour(color): |
def Color2wxColour(color): |
13 |
assert(color is not None) |
assert(color is not None) |
24 |
colour.Green() / 255.0, |
colour.Green() / 255.0, |
25 |
colour.Blue() / 255.0) |
colour.Blue() / 255.0) |
26 |
|
|
27 |
|
def ThubanBeginBusyCursor(): |
28 |
|
wxBeginBusyCursor() |
29 |
|
wxSafeYield() |
30 |
|
|
31 |
|
def ThubanEndBusyCursor(): |
32 |
|
wxEndBusyCursor() |