MCPcopy Create free account
hub / github.com/PyQt5/PyQt / __getAlignment

Method __getAlignment

Test/ChartView/ChartView.py:104–111  ·  view source on GitHub ↗

:param alignment: left|top|right|bottom

(self, alignment)

Source from the content-addressed store, hash-verified

102 )
103
104 def __getAlignment(self, alignment):
105 '''
106 :param alignment: left|top|right|bottom
107 '''
108 try:
109 return getattr(Qt, "Align" + alignment.capitalize())
110 except:
111 return Qt.AlignTop
112
113 # if alignment == "left":
114 # return Qt.AlignLeft

Callers 1

__setLegendMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected