Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KDAB/KDChart
/ randomPosition
Function
randomPosition
python/examples/gfxview/main.py:80–86 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
78
79
80
def
randomPosition():
81
r = random.randint(0, 3)
82
if
r == 1:
83
return
StyleOptionGanttItem.Right
84
if
r == 2:
85
return
StyleOptionGanttItem.Center
86
return
StyleOptionGanttItem.Left
87
88
89
if
__name__ ==
'__main__'
:
Callers
1
main.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected