~ubuntu-branches/debian/jessie/phatch/jessie

« back to all changes in this revision

Viewing changes to phatch/lib/pyWx/treeEdit.py

  • Committer: Bazaar Package Importer
  • Author(s): Stani M
  • Date: 2009-10-01 05:36:09 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20091001053609-wvy9yu0u3i6fuv4t
Tags: 0.2.2-1
* Upstream bugfix release (Closes LP: #236548, #436595, #437161, 
 #437376, #437852, #439108, #439359, #440273, #440956)
* debian/control: Dropped dependency python-wxgtk2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
141
141
        return item
142
142
 
143
143
    def append_forms(self,forms):
144
 
 
145
 
        for form in forms:
146
 
            self.append_form(form)
 
144
        collapse = len(forms)>4
 
145
        for form in forms[:-1]:
 
146
            item = self.append_form(form)
 
147
            if collapse:
 
148
                self.Collapse(item)
 
149
        self.append_form(forms[-1])
147
150
        return forms
148
151
 
149
152
    def append_form_by_label(self,item,label):