from dearpygui.dearpygui import *
def called_f(a,b):
print(a,b)
if name == ‘main’:
add_additional_font(“潦草丫丫字体.ttf”,size=30)
# add_item_color_style("name",style=2,color=[0.1,0.5,0.3]) # add_combo("tst", ["a", "b"], callback="called_f", width=500) # add_data("data",) add_menu("hellow",tip="menu") add_menu_item("d",callback="called_f",tip="helow",parent="hellow") add_menu_item("d1",callback="called_f",tip="helow",parent="hellow") add_menu_item("d2",callback="called_f",tip="helow",parent="hellow") add_menu_item("d3",callback="called_f",tip="helow",parent="hellow") # add_menu_bar("hellow1", parent="d3",before="d3") start_dearpygui()