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, wxBeginBusyCursor, wxEndBusyCursor, wxYield |
10 |
|
|
11 |
def Color2wxColour(color): |
def Color2wxColour(color): |
12 |
assert(color is not None) |
assert(color is not None) |
23 |
colour.Green() / 255.0, |
colour.Green() / 255.0, |
24 |
colour.Blue() / 255.0) |
colour.Blue() / 255.0) |
25 |
|
|
26 |
|
def ThubanBeginBusyCursor(): |
27 |
|
wxBeginBusyCursor() |
28 |
|
wxYield() |
29 |
|
|
30 |
|
def ThubanEndBusyCursor(): |
31 |
|
wxEndBusyCursor() |