上一页 1 ··· 7 8 9 10 11 12 下一页
摘要: 问题描述 已经使用pip安装了模块,但是使用vscode没有代码提示。 解决办法 这种情况一般是因为pc安装了多个python版本,安装模块的pip不是vscode指定的编译环境。 点击右下角,选择环境变量中配置的python版本。 解决问题: 阅读全文
posted @ 2023-11-26 11:08 NotReferenced 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 1、临时使用镜像 pip install -i http://pypi.douban.com/simple/ numpy pip install -i http://pypi.douban.com/simple/--trusted-host pypi.douban.com #此参数“--truste 阅读全文
posted @ 2023-11-24 23:05 NotReferenced 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 使用如下指令生成动态库: gcc test.c -I ./inc -fPIC -shared -o libtest.dll 参数解释: -I:添加头文件搜索目录 -fPIC: 生成位置无关的代码,在编译动态库的时候需要使用该选项 -shared: 表明生成一个共享对象,也就是动态库 阅读全文
posted @ 2023-11-12 11:40 NotReferenced 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 如果全部使用C代码构建用户界面,当组件成百上千时,这将是一场灾难。因此Gtk使用xml进行配置用户界面。 示例如下: ```c #include #include static void print_hello (GtkWidget *widget, gpointer data) { g_print 阅读全文
posted @ 2023-09-04 23:18 NotReferenced 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 如果想要自定义绘制图案,可以使用`GtkDrawingArea`组件实现。 示例如下: ```c #include /* Surface to store current scribbles */ static cairo_surface_t *surface = NULL; static void 阅读全文
posted @ 2023-09-04 22:27 NotReferenced 阅读(99) 评论(0) 推荐(0) 编辑
摘要: GTK提供了许多不同的容器组件,用户可以通过搭配不同的容器组件来控制子组件的布局方式。 容器组件如下: + GtkBox + GtkGrid + GtkRevealer + GtkStack + GtkOverlay + GtkPaned + GtkExpander + GtkFixed # 1、G 阅读全文
posted @ 2023-08-15 23:08 NotReferenced 阅读(306) 评论(0) 推荐(0) 编辑
摘要: Application ID一般是使用倒置的域名,如org.gnome.gedit。 # 1、App id的使用场景 + 作为GtkApplication或者GApplication的入参,每个应用程序应该由唯一的App Id,这个App Id可以用来传递消息; + 在D-Bus中使用,App id 阅读全文
posted @ 2023-08-09 13:28 NotReferenced 阅读(92) 评论(0) 推荐(0) 编辑
摘要: # 1、下载MSYS2 从[MSYS2](https://www.msys2.org/ "MSYS2")中下载安装包,并安装MSYS2。 ![image](https://img2023.cnblogs.com/blog/2414603/202308/2414603-2023080723115002 阅读全文
posted @ 2023-08-08 13:39 NotReferenced 阅读(624) 评论(2) 推荐(0) 编辑
摘要: vscode报错如下: ![image](https://img2023.cnblogs.com/blog/2414603/202308/2414603-20230807224059479-103926527.png) 报错原因是因为vscode找不到头文件导致的。 **解决办法:** 在`sett 阅读全文
posted @ 2023-08-07 22:45 NotReferenced 阅读(136) 评论(0) 推荐(0) 编辑
摘要: # 1、安装 到[MinGW](https://github.com/niXman/mingw-builds-binaries/releases "MinGW")下载最新的安装包 ![image](https://img2023.cnblogs.com/blog/2414603/202308/241 阅读全文
posted @ 2023-08-07 22:30 NotReferenced 阅读(139) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 下一页