Skip to content

Commit b631796

Browse files
Sigma1912hansu
authored andcommitted
calculatorwidget: Allow using calculation result in new operations
1 parent 4f3251f commit b631796

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/python/gladevcp/calculatorwidget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def compute( self ):
201201
except:
202202
b = "Error"
203203
self.entry.set_text( b )
204-
self.eval_string = b + " " # add space to indicate that calculation was last
204+
self.entry.set_position(len(self.eval_string))
205205

206206
def delete( self ):
207207
self.eval_string = ''

0 commit comments

Comments
 (0)