Changeset 7509 for n4dgtklogin


Ignore:
Timestamp:
Jun 22, 2018, 9:01:24 AM (18 months ago)
Author:
Juanma
Message:

add vertical orientation

Location:
n4dgtklogin/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • n4dgtklogin/trunk/fuentes/debian/changelog

    r7506 r7509  
    11python-n4dgtklogin (0.4.4) xenial; urgency=medium
    22
    3   * Added vertical orientation (experimental)
     3  * Added vertical orientation
    44
    55 -- Juanma Navarro Mañez <juanma1980@gmail.com>  Thu, 21 Jun 2018 14:55:38 +0200
  • n4dgtklogin/trunk/fuentes/python3-n4dgtklogin.install/edupals/ui/n4dgtklogin.py

    r7506 r7509  
    3030                super().__init__(*args,**kwds)
    3131                self.vertical=False
     32                if 'orientation' in kwds.keys():
     33                        if kwds['orientation']==Gtk.Orientation.VERTICAL:
     34                                self.vertical=True
    3235                self.sw_n4d=True
    3336                if hasattr(sys,'last_value'):
     
    4952                self.render_form()
    5053        #def __init__
    51 
    52         def set_vertical(self,vertical=True):
    53                 if type(vertical)!=type(bool()):
    54                         vertical=True
    55                 self.vertical=vertical
    56                 self.set_mw_proportion_ratio(2,1)
    57         #def set_vertical
    5854
    5955        def set_allowed_groups(self,groups):
Note: See TracChangeset for help on using the changeset viewer.