windows full features
This commit is contained in:
@@ -10,4 +10,9 @@ class COLLUMN_STYLE(Enum):
|
||||
NONE = 0
|
||||
INNER = 1
|
||||
OUTER = 2
|
||||
BOTH = 3
|
||||
BOTH = 3
|
||||
|
||||
class BORDER_RADIUS(Enum):
|
||||
NONE = 0
|
||||
TOP = 1
|
||||
TOP_AND_BOTTOM = 2
|
||||
6
utils/functions.py
Normal file
6
utils/functions.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from enum import Enum
|
||||
import random as rd
|
||||
|
||||
def select_random(rdata : dict, enum : Enum) -> Enum:
|
||||
# select a random value of the dict according to his coef and return the corresponding value in the enum
|
||||
return enum[rd.choice([elt for elt,num in rdata.items() for _ in range(num)]).upper()]
|
||||
Reference in New Issue
Block a user