First steps towards a PyQt4 application

This commit is contained in:
Thomas Krijnen
2016-04-17 15:27:05 +02:00
parent 9fedbbff6d
commit 1d1fb6d27a
6 changed files with 480 additions and 93 deletions
@@ -92,6 +92,7 @@ class entity_instance(object):
def is_a(self, *args): return self.wrapped_data.is_a(*args)
def id(self): return self.wrapped_data.id()
def __eq__(self, other):
if type(self) != type(other): return False
return self.wrapped_data == other.wrapped_data
def __hash__(self):
return hash((self.id(), self.wrapped_data.file_pointer()))
@@ -151,3 +152,4 @@ def create_entity(type,*args,**kwargs):
version = ifcopenshell_wrapper.version()
schema_identifier = ifcopenshell_wrapper.schema_identifier()
get_supertype = ifcopenshell_wrapper.get_supertype