code stringlengths 3 6.57k |
|---|
self._attr.set_trigger('WIDTH', self._trigger_set_width, when='set') |
self._attr.set_trigger('HEIGHT', self._trigger_set_height, when='set') |
self._attr.set_trigger('OFFSET', self._trigger_set_offset, when='set') |
parent(self) |
parent(self, obj) |
width(self) |
width(self, val) |
self.update() |
_trigger_set_width(self, key, value) |
height(self) |
height(self, val) |
self.update() |
_trigger_set_height(self, key, value) |
offset(self) |
offset(self, val) |
hasattr(self, "_parent") |
ValueError("A edge should be assigned for this arrow before setting offset.") |
self.update() |
_trigger_set_offset(self, key, value) |
update(self) |
self.parent.update() |
identify_points(self, head, edge_body_width, angle=None) |
NotImplementedError("identify_pos should be implemented!") |
to_dict(self) |
dict_head.update(self._attr) |
from_dict(cls, dict_head) |
cls(width, height, offset=offset) |
Triangle(BaseArrow) |
__init__(self, width=None, height=None, offset=None, *args, **kwargs) |
super() |
__init__(width, height, offset, *args, **kwargs) |
identify_points(self, head, edge_body_width, transform=None) |
QPointF(0, -edge_body_width/2) |
QPointF(0, +edge_body_width/2) |
QPointF(0.0, -self.width/2) |
QPointF(0.0, +self.width/2) |
QPointF(self.height, 0) |
enumerate(points) |
transform(pt, head) |
set_size_from_edge(self, edge_width) |
self.parent.update() |
Hammer(BaseArrow) |
__init__(self, width=None, height=None, offset=None, *args, **kwargs) |
super() |
__init__(width, height, offset, *args, **kwargs) |
identify_points(self, head, edge_body_width, transform=None) |
QPointF(0, -edge_body_width/2) |
QPointF(0, +edge_body_width/2) |
QPointF(0, -self.width/2) |
QPointF(self.height, -self.width/2) |
QPointF(self.height, +self.width/2) |
QPointF(0, +self.width/2) |
enumerate(points) |
transform(pt, head) |
set_size_from_edge(self, edge_width) |
self.parent.update() |
TestApiVersions(functional.FunctionalTest) |
test_version_configurations(self) |
self.start_servers(**self.__dict__.copy() |
jsonutils.dumps(versions) |
httplib2.Http() |
http.request(path, 'GET') |
self.assertEqual(http_client.MULTIPLE_CHOICES, response.status) |
self.assertEqual(versions_json, content) |
test_v2_api_configuration(self) |
self.start_servers(**self.__dict__.copy() |
jsonutils.dumps(versions) |
httplib2.Http() |
http.request(path, 'GET') |
self.assertEqual(http_client.MULTIPLE_CHOICES, response.status) |
self.assertEqual(versions_json, content) |
test_v1_api_configuration(self) |
self.start_servers(**self.__dict__.copy() |
jsonutils.dumps(versions) |
httplib2.Http() |
http.request(path, 'GET') |
self.assertEqual(http_client.MULTIPLE_CHOICES, response.status) |
self.assertEqual(versions_json, content) |
TestApiPaths(functional.FunctionalTest) |
setUp(self) |
super(TestApiPaths, self) |
setUp() |
self.start_servers(**self.__dict__.copy() |
jsonutils.dumps(versions) |
jsonutils.dumps(images) |
test_get_root_path(self) |
httplib2.Http() |
http.request(path, 'GET') |
self.assertEqual(http_client.MULTIPLE_CHOICES, response.status) |
self.assertEqual(self.versions_json, content) |
test_get_images_path(self) |
httplib2.Http() |
http.request(path, 'GET') |
self.assertEqual(http_client.MULTIPLE_CHOICES, response.status) |
self.assertEqual(self.versions_json, content) |
test_get_v1_images_path(self) |
httplib2.Http() |
http.request(path, 'GET') |
self.assertEqual(http_client.OK, response.status) |
test_get_root_path_with_unknown_header(self) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.