Skip to content

Commit

Permalink
changed import to PyQt5
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Leonardson committed Jun 8, 2022
1 parent 7861917 commit f303524
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mand_gui.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/python
#$Id: mand_gui.py,v 1.18 2017/12/07 20:39:27 dan Exp dan $
import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from subprocess import call
from collections import namedtuple

Expand Down Expand Up @@ -63,7 +63,7 @@ def mouseReleaseEvent(self, event):
xbox.setText(str(self.cand_xyw.x))
ybox.setText(str(self.cand_xyw.y))
wbox.setText(str(self.cand_xyw.width))
print '%s %s %s' % (self.cand_xyw.x, self.cand_xyw.y, self.cand_xyw.width)
print('%s %s %s' % (self.cand_xyw.x, self.cand_xyw.y, self.cand_xyw.width))
self.rubberBand.hide()


Expand Down Expand Up @@ -96,9 +96,9 @@ def on_click():
yval = ybox.text()
wval = wbox.text()
ival = inter.currentText()
print 'Calling mand %s %s %s %s %s' % (xval, yval, wval, name, ival)
print('Calling mand %s %s %s %s %s' % (xval, yval, wval, name, ival))
call(['/home/dan/mandelbrot/mand', xval, yval, wval, name, ival])
print 'Done'
print('Done')
reg.setPixmap(QPixmap('%s.bmp' % name))
COUNT += 1

Expand Down

0 comments on commit f303524

Please sign in to comment.