Giter Site home page Giter Site logo

welbornprod / glader Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 1.0 159 KB

Generate python code from a glade file. Signals are automatically stubbed out with correct arguments.

Python 96.03% Shell 3.97%
gtk gui gtksourceview python glade glade-files code-generation code-generator

glader's Issues

RecursionError: maximum recursion depth exceeded

Python 3.8.5 Fedora 32
While running ./install --user:
(couple of times the same:)
__File "./install", line 159, in init
self.parse_commands()
File "./install", line 166, in parse_commands
for i, x in enumerate(self[:]):
File "/usr/lib64/python3.8/collections/init.py", line 1079, in getitem
return self.class(self.data[i])

Solution from https://stackoverflow.com/questions/8177073/python-maximum-recursion-depth-exceeded doesnt seem to work, because fedora says "Memory protection violation".

Use `__new__` to generate Gtk classes.

This will turn self.winMain accesses into self, and allow children to be accessed as 'self.childWin' instead of self.childWin.childWin. The builder needs to be involved in __new__, so it may be a little tricky to instantiate the main window in __new__, and then instantiate all children in __init__ (especially with the current code generation, and regular vs. dynamic init).

The idea came from this article.

More information is needed.

Real installer

The installer should take care of everything. It should install the system and pip dependencies. Publishing a pip package would take care of half of that (use requires=[...]). Publishing a Debian package would probably take care of all of that. It's worth looking into.

The install script that is included only copies the files to a user/system directory. I don't really want it to start handling dependencies when there are already tools for that.

Stopped development

Hi!
I'm bits57(I'd like to keep myself anonymous, at least for now).
I see you have cut development in 2017, and I'd like to ask you to open it again. I can contribute to this myself, I know how your code works as I've studied glader closely. I use it in my daily development with glade and GNOME Builder, and it has helped me a lot. I have already a list of things to change:

  • Support for other main toplevels(gtkDialog, gtkFontChooserDialog, etc...)
  • Better instructions on how to install gtkSourceView (I never got it to work, and eventually changed it to a gtkTextView from glader.glade, though this might be a problem on either my ubuntu install or in ubuntu itself, so I'm not excpecting this to change much)
  • Compiled versions (.deb, .rpm) in Releases (I can do this)

If you don't want to do this, that's fine too! I can fork this to my github, but it would nice to co-develop this with the original author :).
Also, I'm not using my github every day so if you answer, I might not answer the same day. And since you're in the US, there is several hours between us.

Thank you
bits57

Error parsing glade file

Error parsing glade file!: PiTV/sidebar.glade
'NoneType' object has no attribute 'name'

No usable info was found for this file: PiTV/sidebar.glade

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.