mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-12 09:18:00 +03:00
addhardware: use range to initialize page number
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
This commit is contained in:
parent
e980d9c737
commit
6288135f2b
@ -42,22 +42,23 @@ from virtManager.storagebrowse import vmmStorageBrowser
|
||||
from virtManager.baseclass import vmmGObjectUI
|
||||
from virtManager.addstorage import vmmAddStorage
|
||||
|
||||
PAGE_ERROR = 0
|
||||
PAGE_DISK = 1
|
||||
PAGE_NETWORK = 2
|
||||
PAGE_INPUT = 3
|
||||
PAGE_GRAPHICS = 4
|
||||
PAGE_SOUND = 5
|
||||
PAGE_HOSTDEV = 6
|
||||
PAGE_CHAR = 7
|
||||
PAGE_VIDEO = 8
|
||||
PAGE_WATCHDOG = 9
|
||||
PAGE_FILESYSTEM = 10
|
||||
PAGE_SMARTCARD = 11
|
||||
PAGE_USBREDIR = 12
|
||||
PAGE_TPM = 13
|
||||
PAGE_RNG = 14
|
||||
PAGE_PANIC = 15
|
||||
(PAGE_ERROR,
|
||||
PAGE_DISK,
|
||||
PAGE_NETWORK,
|
||||
PAGE_INPUT,
|
||||
PAGE_GRAPHICS,
|
||||
PAGE_SOUND,
|
||||
PAGE_HOSTDEV,
|
||||
PAGE_CHAR,
|
||||
PAGE_VIDEO,
|
||||
PAGE_WATCHDOG,
|
||||
PAGE_FILESYSTEM,
|
||||
PAGE_SMARTCARD,
|
||||
PAGE_USBREDIR,
|
||||
PAGE_TPM,
|
||||
PAGE_RNG,
|
||||
PAGE_PANIC,
|
||||
) = range(0, 16)
|
||||
|
||||
|
||||
class vmmAddHardware(vmmGObjectUI):
|
||||
|
Loading…
Reference in New Issue
Block a user