mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-16 17:31:28 -04:00
20 lines
612 B
Python
20 lines
612 B
Python
import pytest
|
|
tk = pytest.importorskip('tkinter')
|
|
pytest.importorskip('Pmw')
|
|
from direct.tkwidgets.Dial import Dial
|
|
|
|
|
|
def test_Dial(tk_toplevel):
|
|
tl = tk_toplevel
|
|
d = Dial(tl)
|
|
d2 = Dial(tl, dial_numSegments = 12, max = 360,
|
|
dial_fRollover = 0, value = 180)
|
|
d3 = Dial(tl, dial_numSegments = 12, max = 90, min = -90,
|
|
dial_fRollover = 0)
|
|
d4 = Dial(tl, dial_numSegments = 16, max = 256,
|
|
dial_fRollover = 0)
|
|
d.pack(expand = 1, fill = tk.X)
|
|
d2.pack(expand = 1, fill = tk.X)
|
|
d3.pack(expand = 1, fill = tk.X)
|
|
d4.pack(expand = 1, fill = tk.X)
|