Ignore:
Timestamp:
04/30/10 02:53:15 (2 years ago)
Author:
Luper Rouch <luper.rouch@…>
Children:
acf43d008d077e46c8915fc1a184b56ffea0dac1
Parents:
8d7196fb48bcec3bf822911c6aaff79b2b90cda4
git-committer:
Luper Rouch <luper.rouch@…> (04/30/10 02:53:15)
Message:

pyflu:

  • refactored fifo.FifoBuffer?, now working more like numpy arrays
  • jsonalize:
    • added load() and save() methods to JSONAlizable
    • alternate constructor can be specified in register()
  • qt:
    • TreeModel? now uses JSON to serialize python objects in drag and drop operations
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyflu/pyflu/qt/views/treenode_view.py

    re17ef59 r70bb1cc  
    1 from PyQt4.QtCore import * 
    2 from PyQt4.QtGui import * 
     1from PyQt4.QtCore import Qt, SIGNAL 
     2from PyQt4.QtGui import QTreeView, QAction, QMenu, QMessageBox 
    33import louie 
    44 
     
    1515    TreeNodeView subclasses can define any context menu action, the method of 
    1616    the same name in the subclass will be used as the action's callback. 
    17     """ 
    18  
    19     error_signal = None 
    20     """ 
    21     This has to be defined in subclasses and must be a subclass of 
    22     louie.Signal. 
    2317    """ 
    2418 
     
    4943        return QTreeView.keyReleaseEvent(self, event) 
    5044 
    51     def setModel(self, model): 
    52         louie.connect(self.model_error, self.error_signal, model) 
    53         return QTreeView.setModel(self, model) 
    54  
    5545    # Other methods 
    5646 
     
    7666 
    7767    def delete(self): 
     68        """ 
     69        Delete the currently selected item. 
     70        """ 
    7871        index = self.currentIndex() 
    7972        if not index.isValid(): 
Note: See TracChangeset for help on using the changeset viewer.