-
-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some ideas for pygubu. #29
Comments
Hi zaazbb, At the moment I'm rewriting parts of the properties management so I can add more features easily. About your ideas:
I agree. But I think that is better to have a configuration option instead of by default. Something like "Atomatically add callback for buttons (yes/no)"
Mmm, I did not understand this requirement well. Do you mean an easy way to acces builder variables? Can you add some usage example pseudocode?
This is a hard one, and I don't think that it will be posible. I can research and analyze the possibility but this feature is not a priority for now.
I need more info here. Some usage example? I don't know qt-designer very well.
This is another hard one, do you mean like an integrated IDE?. The initial concept was to only concentrate in the UI design part but, who knows, time will tell. Regards |
Mmm, I did not understand this requirement well. Do you mean an easy way to acces builder variables? Can you add some usage example pseudocode? I want import all variables to App class namespace by a helper function, for example: class MyApp(pygubu.TkApplication):
def _create_ui(self):
self.builder = builder = pygubu.Builder()
builder.add_from_file('main.ui')
self.mainwindow = builder.get_object('mainwindow', self.master)
builder.connect_callbacks(self)
self.ivPktIndex = builder.get_variable('ivPktIndex')
self.svPktDat = builder.get_variable('svPktDat')
self.ivCount = builder.get_variable('ivCount')
self.ivInterval = builder.get_variable('ivInterval')
self.svSend = builder.get_variable('svSend') I must call .get_variable() for every variable. I want a helper function, like builder.import_variables(), It can import all variable as the same name, or a fixed format name. "self.ivPktIndex" and "self.svPktDat" are created automatically. I only need call "builder.import_variables()" once. Those code can rewrite as below: class MyApp(pygubu.TkApplication):
def _create_ui(self):
self.builder = builder = pygubu.Builder()
builder.add_from_file('main.ui')
self.mainwindow = builder.get_object('mainwindow', self.master)
builder.connect_callbacks(self)
builder.import_variables()
# now you can use self.ivPktIndex, self.svPktDat directly. |
I need more info here. Some usage example? I don't know qt-designer very well. This is a part of "Layout on review panel(should rename as Layout panel or design panel)". I want drag, move and edite widget on a design panel like VC. Maybe, It is too hard to tkiner, TK only is a lightweight gui library. |
Is PyGuru supporting (or plan to support) the Python Mega Widget? --- Regarding the proposal "pygubu not just create ui file, also create App file." of zaazbb --- |
Add an option to show/hide elements. Maybe a checkbox in |
Should the unrealized suggestions be split into separate issues, and some put here? |
The text was updated successfully, but these errors were encountered: