Set default date to today in input frame
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
from datetime import datetime
|
||||||
import os
|
import os
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
@@ -122,6 +123,9 @@ class UIManager:
|
|||||||
row=6, column=1, sticky="ew", padx=5, pady=2
|
row=6, column=1, sticky="ew", padx=5, pady=2
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Set default date to today
|
||||||
|
date_var.set(datetime.now().strftime("%m/%d/%Y"))
|
||||||
|
|
||||||
# Return all UI elements and variables
|
# Return all UI elements and variables
|
||||||
return {
|
return {
|
||||||
"frame": input_frame,
|
"frame": input_frame,
|
||||||
|
|||||||
Reference in New Issue
Block a user