Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 glade 构建了一个数据库操作 GUI,因为我的添加按钮层次结构是添加->确认对话框->(如果是)添加数据。如何访问主窗体中的每个小部件值?我是 gtk 和 glade 的新手,我设法摆脱了大部分错误。
通常你会像 Ethan 说的那样使用 GtkBuilder。据我所知,动态创建的小部件不容易查找。我只需将一小组指针传递给需要它们的模块。