-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use correct trait type for mouse pointers (#911)
* Use correct trait type for mouse pointers. Fixes #885 * Add a basic * Add a basic test for the pointer shape traits.
- Loading branch information
1 parent
8dc913d
commit d3b59ff
Showing
2 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# (C) Copyright 2005-2021 Enthought, Inc., Austin, TX | ||
# All rights reserved. | ||
# | ||
# This software is provided without warranty under the terms of the BSD | ||
# license included in LICENSE.txt and may be redistributed only under | ||
# the conditions described in the aforementioned license. The license | ||
# is also available online at http://www.enthought.com/licenses/BSD.txt | ||
# | ||
# Thanks for using Enthought open source! | ||
|
||
import unittest | ||
|
||
from enable.drawing.point_line import PointLine | ||
|
||
|
||
class TestPointLine(unittest.TestCase): | ||
|
||
def test_pointer_shapes(self): | ||
point_line = PointLine() | ||
|
||
self.assertEqual(point_line.normal_cursor, "arrow") | ||
self.assertEqual(point_line.drawing_cursor, "pencil") | ||
self.assertEqual(point_line.delete_cursor, "bullseye") | ||
self.assertEqual(point_line.move_cursor, "sizing") |