@@ -720,7 +720,8 @@ def __init__(self, targetfig, parent):
720
720
self .parent = parent
721
721
self .connect (self .doneButton , QtCore .SIGNAL ("clicked()" ), self .close )
722
722
self .connect (self .resetButton , QtCore .SIGNAL ("clicked()" ), self .reset )
723
- self .connect (self .tightLayout , QtCore .SIGNAL ("clicked()" ), self .functight )
723
+ self .connect (self .tightLayout , QtCore .SIGNAL ("clicked()" ),
724
+ self .functight )
724
725
725
726
sliders = (self .sliderleft , self .sliderbottom , self .sliderright ,
726
727
self .slidertop , self .sliderwspace , self .sliderhspace ,)
@@ -770,10 +771,9 @@ def _read_defaults(self):
770
771
self .defaults = {'left' : self .targetfig .subplotpars .left ,
771
772
'bottom' : self .targetfig .subplotpars .bottom ,
772
773
'right' : self .targetfig .subplotpars .right ,
773
- 'top' :self .targetfig .subplotpars .top ,
774
+ 'top' : self .targetfig .subplotpars .top ,
774
775
'wspace' : self .targetfig .subplotpars .wspace ,
775
- 'hspace' : self .targetfig .subplotpars .hspace
776
- }
776
+ 'hspace' : self .targetfig .subplotpars .hspace }
777
777
778
778
def _setSliderPositions (self ):
779
779
self .sliderleft .setSliderPosition (
@@ -794,7 +794,7 @@ def funcleft(self, val):
794
794
val -= 1
795
795
val /= 1000.
796
796
self .targetfig .subplots_adjust (left = val )
797
- self .leftvalue .setText ("%.2f" % val )
797
+ self .leftvalue .setText ("%.2f" % val )
798
798
if self .drawon :
799
799
self .targetfig .canvas .draw ()
800
800
@@ -803,7 +803,7 @@ def funcright(self, val):
803
803
val += 1
804
804
val /= 1000.
805
805
self .targetfig .subplots_adjust (right = val )
806
- self .rightvalue .setText ("%.2f" % val )
806
+ self .rightvalue .setText ("%.2f" % val )
807
807
if self .drawon :
808
808
self .targetfig .canvas .draw ()
809
809
@@ -812,7 +812,7 @@ def funcbottom(self, val):
812
812
val -= 1
813
813
val /= 1000.
814
814
self .targetfig .subplots_adjust (bottom = val )
815
- self .bottomvalue .setText ("%.2f" % val )
815
+ self .bottomvalue .setText ("%.2f" % val )
816
816
if self .drawon :
817
817
self .targetfig .canvas .draw ()
818
818
@@ -821,21 +821,21 @@ def functop(self, val):
821
821
val += 1
822
822
val /= 1000.
823
823
self .targetfig .subplots_adjust (top = val )
824
- self .topvalue .setText ("%.2f" % val )
824
+ self .topvalue .setText ("%.2f" % val )
825
825
if self .drawon :
826
826
self .targetfig .canvas .draw ()
827
827
828
828
def funcwspace (self , val ):
829
829
val /= 1000.
830
830
self .targetfig .subplots_adjust (wspace = val )
831
- self .wspacevalue .setText ("%.2f" % val )
831
+ self .wspacevalue .setText ("%.2f" % val )
832
832
if self .drawon :
833
833
self .targetfig .canvas .draw ()
834
834
835
835
def funchspace (self , val ):
836
836
val /= 1000.
837
837
self .targetfig .subplots_adjust (hspace = val )
838
- self .hspacevalue .setText ("%.2f" % val )
838
+ self .hspacevalue .setText ("%.2f" % val )
839
839
if self .drawon :
840
840
self .targetfig .canvas .draw ()
841
841
0 commit comments