Skip to content

delicb/mvvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IronPythonMVVM

Set of helper classes for easier using MVVM pattern with WPF and IronPython.

Inspired by http:https://www.galasoft.ch/mvvm/, but addapted to be more pythonic.

Example of creating ViewModel:

from mvvm import ViewModelBase, Notifiable, command

class MyViewModel(ViewModelBase):
    TextField = Notifiable()

    @command
    def MyCommand(self):
        # do something
        # maybe update `TestField`, event will be raise automatically
        TextField = 'some value'

This view model can be used in XAML just as if INotifyPropertyChanged and ICommand are implemented directly.

About

MVVM with python in the middle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages