Closed fengmumu123123 closed 7 months ago
并且中文字符乱码问题 在未知条件下还有会造成无法启动gui 报错内容 进程已结束,退出代码-1073741819 (0xC0000005)
I bet there are many people who would be upset by this ticket or at least by their own inability to read Chinese. Or maybe it's just me.
Is this closed because of the Chinese language or the problem was solved for real?
Because of the Chinese language. If you can translate and it's a real issue, I could reopen the issue.
I don't think it is necessary. The issue is about displaying Chinese characters. I don't have an issue with that, so if @fengmumu123123 could provide the full functioning code to replicate the issue, I could help resolve it. It also seems duplicated with #1760
@fengmumu123123 你能提供完整可运行的测试代码吗? 是和这个相关吗 #1760 ?
相关测试代码如下
导入dearpygui库
import dearpygui.dearpygui as dpg
创建dearpygui上下文
dpg.create_context()
加载中文字体
with dpg.font_registry():
加载中文字体
print("加载字体完成")
当用户尝试连接节点属性时运行的回调函数
def link_callback(sender, app_data):
app_data -> (link_id1, link_id2)
当用户尝试断开节点属性连接时运行的回调函数
def delink_callback(sender, app_data):
app_data -> link_id
创建一个窗口,标题为“Tutorial”,大小为400x400像素
with dpg.window(label="教程", width=400, height=400):
创建一个节点编辑器,指定链接和断开链接的回调函数
创建一个视口,标题为“测试窗口”,大小为800x600像素
dpg.show_font_manager()
dpg.create_viewport(title='测试窗口', width=800, height=600) print("创建视口")
设置dearpygui
dpg.setup_dearpygui() print("设置dearpygui")
显示视口
dpg.show_viewport() print("显示视口")
启动dearpygui
dpg.start_dearpygui() print("启动dearpygui")
销毁dearpygui上下文
dpg.destroy_context() print("销毁dearpygui上下文")