@@ -60,9 +60,8 @@ def __init__(self, parent=None, width=5, height=4, dpi=100):
60
60
FigureCanvas .__init__ (self , self .fig )
61
61
self .setParent (parent )
62
62
63
- FigureCanvas .setSizePolicy (self , QSizePolicy .Expanding ,
64
- QSizePolicy .Expanding )
65
- FigureCanvas .updateGeometry (self )
63
+ self .setSizePolicy (QSizePolicy .Expanding , QSizePolicy .Expanding )
64
+ self .updateGeometry ()
66
65
67
66
68
67
@@ -780,7 +779,7 @@ def initUI(self):
780
779
rw = QWidget ()
781
780
782
781
self .bh = BoreholeData ()
783
- self .locmap = MapCanvas (self , width = 5 , height = 4 , dpi = 100 )
782
+ self .locmap = MapCanvas (self )
784
783
self .locmap .setMinimumSize (800 , 550 )
785
784
toolbar = NavigationToolbar (self .locmap , self )
786
785
@@ -807,10 +806,10 @@ def initUI(self):
807
806
808
807
mapctrl .setLayout (mcl )
809
808
810
- self .splot = SpectrumCanvas (self , width = 5 , height = 4 , dpi = 100 )
811
- self .splot .setMinimumSize (500 ,400 )
812
- self .lachplot = LachenbruchCanvas (self , width = 5 , height = 4 , dpi = 100 )
813
- self .lachplot .setMinimumSize (500 ,400 )
809
+ self .splot = SpectrumCanvas (self )
810
+ self .splot .setMinimumSize (500 , 450 )
811
+ self .lachplot = LachenbruchCanvas (self )
812
+ self .lachplot .setMinimumSize (500 , 450 )
814
813
815
814
self .plots = QTabWidget ()
816
815
self .plots .addTab (self .splot , 'Spectrum' )
@@ -869,6 +868,7 @@ def initUI(self):
869
868
870
869
871
870
hbox = QHBoxLayout ()
871
+ hbox .setContentsMargins (0 , 0 , 0 , 0 )
872
872
#hbox.addStretch(1)
873
873
hbox .addWidget (lw )
874
874
hbox .addWidget (rw )
@@ -889,7 +889,7 @@ def initUI(self):
889
889
lw .setLayout (rvbox1 )
890
890
rw .setLayout (rvbox2 )
891
891
892
- mw .setLayout (hbox )
892
+ mw .setLayout (hbox )
893
893
894
894
self .setGeometry (100 , 100 , 300 , 150 )
895
895
self .setWindowTitle ('Curie-Point Depth Calculator' )
0 commit comments