File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ def render(self, url):
131
131
# QApplication.processEvents may be called, causing
132
132
# this method to get called while it has not returned yet.
133
133
helper = _WebkitRendererHelper (self )
134
+ helper ._window .resize ( self .width , self .height )
134
135
image = helper .render (url )
135
136
136
137
# Bind helper instance to this image to prevent the
@@ -224,8 +225,9 @@ def render(self, url):
224
225
if self .wait > 0 :
225
226
if self .logger : self .logger .debug ("Waiting %d seconds " % self .wait )
226
227
waitToTime = time .time () + self .wait
227
- while time .time () < waitToTime and QApplication .hasPendingEvents ():
228
- QApplication .processEvents ()
228
+ while time .time () < waitToTime :
229
+ if QApplication .hasPendingEvents ():
230
+ QApplication .processEvents ()
229
231
230
232
if self .renderTransparentBackground :
231
233
# Another possible drawing solution
You can’t perform that action at this time.
0 commit comments