Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~638 People Reached
Favorite Forums
Favorite Tags
Member Avatar for garyinspringhil

I'm a newbie so please be patient... :) [CODE]def canvas(self): import qt self.setCaption('My Canvas') c = qtcanvas.QCanvas(self) # <- gives the canvas a parent QObject c.resize(315, 207) v = qtcanvas.QCanvasView(self) v.setGeometry(QRect(200,590,321,211)) lay = qt.QVBoxLayout(self) lay.addWidget(v) v.setCanvas(c) l = qtcanvas.QCanvasLine(c) l.setPen(qt.QPen(qt.Qt.black)) l.setPoints(10,10,390,390) l.show() v.show() c.update() l1 = qtcanvas.QCanvasLine(c) l1.setPen(qt.QPen(qt.Qt.red)) l1.setPoints(20,60,10,230) l1.show() …

Member Avatar for garyinspringhil
0
134
Member Avatar for garyinspringhil

I need a qtimer to trigger reading of a file line by line, I have the code working running with the timer trigger but qtimer will just read the first line over and over as it is now. Here is the code so far: self.lcdtimer = QTimer() self.connect(self.pushButton85,SIGNAL("clicked()"),self.update) self.connect(self.lcdtimer, SIGNAL("timeout()"), …

0
58
Member Avatar for garyinspringhil

[CODE]x = self.spinbox37.value() * 40 y = self.spinbox38.value() * 40 printer = str(self.comboBox4.currentText()) print_cmd = 'echo "IN;PU" x "," y | lpr -P %s %s' self.LCDNumber18.display(x) self.LCDNumber19.display(y) #print_cmd = 'echo "IN;PU2100,11300;" | lpr -P %s %s' os.system(print_cmd % (printer, ""))[/CODE] In the above line I'm trying to use the x …

Member Avatar for garyinspringhil
0
128
Member Avatar for garyinspringhil

python def question def spinBox_Changed(self, a0, b0=785, c0=300): self.LCDNumber10.display((b0-c0)/a0) this works great if I manually have b0 and c0 values there but I need to get these variables from a slider value and spinbox valve respectively. The slider is self.slider5_2.value tried lots of combos like .value display Value etc. The …

Member Avatar for woooee
0
148
Member Avatar for garyinspringhil

I am trying to finish the second release of this hpgl interface for ubuntu/linux, The first release is popular but not very feature rich. My problem is I have added two large save and read in settings buttons on the bottom of the gui window. I need to be able …

Member Avatar for garyinspringhil
0
94
Member Avatar for garyinspringhil

I have a series of variables like so: $BLACKPASS=7 $BLACKCUTDEPTH=567 $SURFACE=325 NUMBEROFPASSES=$((($BLACKCUTDEPTH-$SURFACE )/$BLACKPASS)) #is 34 Text To Edit: IN; PU; SP6; !PZ-325,200; snip here (inclusive)SP6 is a known/usable starting point VS25; PU9170,-10213; PD9170,-10827; PD7967,-10827; PD7967,-10213; PD9170,-10213; PD9170,-10213; PU9170,-10213; snip stops here inclusive BEFORE the next SPx line SP7; !PZ-325,200; VS8; …

0
76