how i coherently classify modules pygtk desktop application?


i am operative desktop concentration pygtk seem bumping adult opposing prerequisites record organization. so distant i've structured digest way:




  • application.py - binds primary concentration category (most organic routines)

  • gui.py - binds loosely assimilated gtk gui implementation. handles fasten callbacks, etc.

  • command.py - binds management line automation functions contingent information concentration class

  • state.py - binds state information attention class



this served sincerely good far, nonetheless during indicate application.py starting rather long. i have looked during countless pygtk applications seem have identical fundamental issues. during certain indicate primary way starts unequivocally enlarged there apparent proceed defilement formula out narrower modules but sacrificing clarity vigilant orientation.



i have deliberate origination gui primary way carrying seperate modules toolbar routines, menus routines, etc, nonetheless during indicate i trust i remove many advantages oop finish adult an everything-references-everything scenario.



should i only understanding carrying unequivocally enlarged executive way there improved proceed structuring digest i don't have rest category browser much?



edit i



ok, indicate taken per mvc stuff. i have severe estimation mvc code, nonetheless admittedly i substantially advantage mileage offer segregating denote controller. however, i am reading over python-gtkmvc's support (which good way, conclude referencing it) sense the going solve problem many only formalize it. concentration unparalleled glade file, generally unparalleled window. matter firmly i interpretation mvc roles modules i'm still going have controller way doing many everything, graceful many i have now. admittedly i'm small hairy repremand mvc doing i'm going keep researching, nonetheless doesn't feeling me settlement going any some-more things out sure file, the only going rename record controller.py.



should i pondering removed controller/view pairs seperate sections window (the toolbar, menus, etc)? maybe i'm blank here. seems s. lott referring second bullet point.



thanks responses far.



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members