windows full features

This commit is contained in:
KAymeric
2024-05-26 01:37:06 +02:00
parent 7071b0a81c
commit e47c8cf7ce
7 changed files with 75 additions and 32 deletions

View File

@@ -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
View 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()]