How to compile all resources into one executable file?

前端 未结 3 720
萌比男神i
萌比男神i 2020-12-06 13:33

I\'ve wrote GTK application with python.

All graphical user interface is in glade file, and there are some images used. I wish to compile my application into EXEcuta

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-06 14:23

    With a few changes, you can incorporate everything into your source code and thus into your executable file.

    If you run gdk-pixbuf-csource on your image files, you can convert them into strings, which you can then load using gtk.gdk.pixbuf_new_from_inline().

    You can also include your Glade file as a string in the program and then load it using gtk.Builder.add_from_string().

提交回复
热议问题