Python GTK MVC: Kiwi?

I've been looking around for a good MVC framework for Python using PyGTK. I've looked at Kiwi but found it a bit lacking, especially with using the Gazpacho Glade-replacement.

Are there any other nice desktop Python MVC frameworks? I'm one of the few (it seems) to not want a webapp.

Asked by: Lucas246 | Posted: 28-01-2022

Answer 1

In defense of Kiwi:

  • Kiwi works fine with Glade3 instead of Gazpacho. (who forced you to use Gazpacho?)
  • Kiwi is my first dependency for any PyGTK application commercial or open source.
  • Kiwi is very actively maintained.

I have generally got to a stage where I think its irresponsible to not use Kiwi in a PyGTK application. Perhaps you can tell us what you found "lacking" so we can improve the framework. #kiwi on (or the Kiwi mailing list).

Answered by: Wilson625 | Posted: 01-03-2022

Answer 2

"mvc" titled app:

"avc" titled app:

more information:

Answered by: Emily432 | Posted: 01-03-2022

Answer 3

There's Dabo, made by some guys moving from FoxPro. It might work for you if you're writing a data driven business app.

Beyond that, I haven't found anything that you haven't.

GUI stuff is supposed to be hard. It builds character.

(Attributed to Jim Ahlstrom, at one of the early Python workshops. Unfortunately, things haven't changed much since then.)

Answered by: Kelvin557 | Posted: 01-03-2022

Answer 4


Answered by: Sydney946 | Posted: 01-03-2022

Similar questions

model view controller - Python - PyQt5 - MVC

I'm creating my first application in Python. Currently I'm implementing the first view with PyQt5 and the MVC pattern. Therefore I created a "main" class that is starting the controller by creating a new controller object (The first programming language I learned was Java, so maybe this is not necassary?). In this controller objects init method I'm creating the first view. The view class itself creates a new QWidget

model - MPC Controller Python

Got the code from here: Implementation of a Lateral contoller using non linear model predictive control in GEKKO I can't seem to run it. The error I get is: Solver starts ... Error: dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/9/libquadmath.0....

python - USB controller will not work in Pygame

I have a USB controller that I have mapped to be the arrow keys on the keyboard, outside of gaming programs (as in, you can use it as the normal arrow keys on the keyboard). I did this using the program ControlMK. My Pygame program will not recognize the controller as the keyboard. When I try to use the Joystick modules, the program does not function properly. Here is my code: import pygame, sys, ti...

python - How does controller work in web2py?

I have a question about how controllers and Form work in web2py. Consider next controller function (from we2py book): def display_form(): form=FORM('Your name:', INPUT(_name='name', requires=IS_NOT_EMPTY()), INPUT(_type='submit')) if form.accepts(request,session): response.flash = 'form accepted' elif for...

python - how to get the value from the controller to the view in web2py

{{(URL('default', 'test', args=[textname[i],"1","english"]))}} I am having this line of code in view to send the values to the controller function called test() In test(), I do some operations and return a string. I need to display the string in the view. How to get the string from controller in the same view again?

python - How to keep the controller alive

I'm trying to implement MVC pattern using this link. Everything's works, until I created 2nd frame with its controller. The 1st frame's controller is still alive because the code was blocked by: app.MainLoop() But when the 2nd controller (created in a button event), it will be GCed because its already out of context...

python - How to return XML Tree from Controller in WEB2PY?

I have xml tree built in controller of web2py. Now I want to return this tree and print the whole xml tree in view on web2py. How do I do that ? Thanks !

python - Getting stats from ryu controller

I'm trying obtain stats in ryu (with python). But when I run mi code only configures the switch, and doesn't make anything else. I've just started with python progamming and I can't find the mistake. class SimpleSwitch(app_manager.RyuApp): def __init__(self, *args, **kwargs): super(SimpleSwitch, self).__init__(*args, **kwargs) self.mac_to_port = {} def send_desc_stats_requests(self, datapath): ...

python - PID controller for DC motor

I want to create a PID controller. As input, I have two csv files, one with my desired behavior I want to achieve and the other with the actual values of current and voltage of a DC motor. I can read the data on the csv files and then use a PID controller (with the code below). Since I just start using Python, I would like to know how to use this class (PID) for each value of current and voltage of the csv ...

Python WSGI server + controller in a single event loop

I need to implement a server that, within a single event loop, would run and server a WSGI application (a web service written in werkzeug in particular) and, at the same time, once in a while call a specific function, which could control the server (e.g. it could pause it or shut it down). (The body of the function is not important, it might for example just check the current time or the state of another process.)

python - Pass dict to controller

I am writing to get some help to "get unstuck". I can't figure out how to pass a dict as an argument to a controller in web2py. Goal: I need to pass a html5 sessionStorage to a web2py controller to validate it and use it to generate order cart. Here is what I have: I have a page that's a catalogue of products. I use html5 sessionStorage to collect the order. I looks like this: {id:qty} e.g....

python - Pylot MVC unable to locate the controller

I created a controller in Pylot MVC and havent been able to figure out why it wont load the controller I created. I have it named appropriately. My controller is called, looks like so: from system.core.model import Model class Course(Controller): def __init__(self): super(Course, self).__init__() def index(self): return self.load_view('index') My routes are set up and ...

python - Importing Model / Lib Class and calling from controller

I'm new to python and pylons although experienced in PHP. I'm trying to write a model class which will act as a my data access to my database (couchdb). My problem is simple My model looks like this and is called models/ from couchdb import * class BlogModel: def getTitles(self): # code to get titles here def saveTitle(self): # code to save title here ...

model view controller - What are good python libraries for the following needs?

What are good python libraries for the following needs: MVC Domain Abstraction Database Abstraction Video library (just to create thumbnails) I already know that SQLAlchemy is really good for Database Abstraction so don't bother with it unless you want to suggest a better one. Edit: This might seem stupid to mention but I'm talking about M...

python - How can I view the contents of an array within controller directly for debugging?

I'm just getting started with pylons, and am trying to figure out how to view the contents of variables for debugging without rendering the template. For example: class IndexController(BaseController): def index(self): # Return a rendered template #return render('/index.mako') # or, return a response return render('/index.mako' ) def test(self): v = request.params return ...

python - In a pylons web app, should a cookie be set from a model class or a controller?

Trying to figure out the best way to do this: Should I do something like: def index(self): if request.POST: u = User(id) u.setCookie() #All session logic in def setCookie() Or set the cookie in the controller like: def index(self): if request.POST: u = User(id) response.set_cookie('session_key', u.session_key, max_age=3600)

forms - Simplest way to handle and display errors in a Python Pylons controller without a helper class

I have a class User() that throw exceptions when attributes are incorrectly set. I am currently passing the exceptions from the models through the controller to the templates by essentially catching exceptions two times for each variable. Is this a correct way of doing it? Is there a better (but still simple) way? I prefer not to use any third party error or form handlers due to the extensive database queries ...

python - SQL Alchemy MVC and cross controller joins

When using SQL Alchemy for abstracting your data access layer and using controllers as the way to access objects from that abstraction layer, how should joins be handled? So for example, say you have an Orders controller class that manages Order objects such that it provides getOrder, saveOrder, etc methods and likewise a similar controller for User objects. First of all do you even need these controller...

python - What a base controller that will look for a session cookie, and if present, set the User object

I want to use a custom base controller for my wep application that has a User object as a property, and a boolean IsLoggedIn property. In the constructor of the base controller (or whatever event I need to do this in??) I want to look for a session cookie, if present, load the user and set the User object and set the IsLoggedIn property to true. I'm very new to pylons so any guidance would be appreciated.

python - How to match all .sass request to a particular controller in pylons?

I'm using pylons, and want to use clever css. I created a controller SassController to handle .sass requests, but in the config/, I don't know how to write the mapping. What I want is: client request: http://localhost:5000/stylesheets/questions/index.sass

python - Pylons - How to get the current controller and action (current route)?

I'm in a Mako template, and I want to know what the current controller and action is (of the current page). How can I do this? I tried c.controller and c.action, but it didn't work. I also listed the keys of the context object but didn't find it. As a workaround, I've been setting c.controller and c.action from within each controller method, but I know there must be a better way. class MainControlle...

python - How to validate the form in pylons in the same controller action that initially rendered it?

I have the following controller: class FormtestController(BaseController): def form(self): return ender('/simpleform.html') @validate(schema=EmailForm(state=c), form='form', post_only=False, on_get=True, auto_error_formatter=custom_formatter) def submit(self): return 'Your email is: %s and the date selected was %r.' % ( self.form_result['email'], ...

Still can't find your answer? Check out these communities...

PySlackers | Full Stack Python | NHS Python | Pythonist Cafe | Hacker Earth | Discord Python