Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KDAB/KDChart
/ randomAlignment
Function
randomAlignment
python/examples/gfxview/main.py:71–77 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
69
70
71
def
randomAlignment():
72
r = random.randint(0, 3)
73
if
r == 1:
74
return
Qt.AlignBottom
75
if
r == 2:
76
return
Qt.AlignCenter
77
return
Qt.AlignTop
78
79
80
def
randomPosition():
Callers
1
main.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected