Re: [Tutor] playing around with function

2006-07-28 Thread Danny Yoo
>def navigated(self): >if (self.state == 'NF') and > (self.store.units[int(self.id)].isfuzzy()): >return True >if (self.state == 'PF') and > (self.store.units[int(self.id)].isfuzzy()): >return True >if (self.state == 'NT') and > (self.store.unit

Re: [Tutor] playing around with function

2006-07-28 Thread Kent Johnson
kakada wrote: > # I have change my code style like this: > > def gotoNF(self): > self.state = "NF" > self.navigationNext(self.state) > def gotoNT(self): > self.state = "NT" > self.navigationNext(self.state) > def gotoNU(self): > self.state = "NU"

Re: [Tutor] playing around with function

2006-07-28 Thread kakada
បានសរសេរ kakada: > Thank Alan and Luke, > > My coding is divided up into many modules and import from one to another. > Here is my editor.py interface. > > > #!/usr/bin/python > # -*- coding: utf8 -*- > > import sys > import application_rc > from PyQt4 import QtCore, QtGui > from ui_editor import U

Re: [Tutor] playing around with function

2006-07-28 Thread kakada
Thank Alan and Luke, My coding is divided up into many modules and import from one to another. Here is my editor.py interface. #!/usr/bin/python # -*- coding: utf8 -*- import sys import application_rc from PyQt4 import QtCore, QtGui from ui_editor import Ui_MainWindow from translate.storage imp

Re: [Tutor] playing around with function

2006-07-28 Thread Alan Gauld
"kakada" <[EMAIL PROTECTED]> wrote > I have problem with function jumping: I'm not sure what you mean by "function jumping" but I'll make a few comments... > in my class, I have three function here: > > def gotoNextFuzzy(self): >state = "isfuzzy" >self.navigationNext(state) > > d

Re: [Tutor] playing around with function

2006-07-28 Thread Luke Paireepinart
Where is self.ui initialized? are these functions part of a class? Why didn't you send the __init__ method? why didn't you send the whole class structure? >def gotoNextFuzzy(self): >state = "isfuzzy" >self.navigationNext(state) >def gotoNextFuzzy(self): >state = "isapprov