# will never be translated = lambda x: xN = lambda x: x # the path to addons is in sys.path so we can import things from orgfedorahelloworld from orgfedorahelloworld.categories.helloworld import HelloWorldCategory from pyanaconda.ui.gui.spokes import NormalSpoke # export only the spoke, no helper functions, classes or constants all = 'HelloWorldSpoke' class HelloWorldSpoke (NormalSpoke): ' Class for the Hello world spoke. This spoke will be in the Hello world category and thus on the Summary hub. It is a very simple example of a unit for the Anaconda's graphical user interface. def refresh ( self ): ' The refresh method that is called every time the spoke is displayed. It should update the UI elements according to the contents of self.data.
Navigator can search for packages on Anaconda Cloud or in a local Anaconda Repository. To get Navigator, get the Navigator Cheat Sheet and install Anaconda. The command line program conda is both a package manager and an. How to Install Anaconda Python and First Steps for Linux and Windows Written on March 28, 2017 by Dr Donald Kinghorn. There is also a new GUI tool called 'Anaconda Navigator'. It is a very powerful tool for installing packages and can even install a completely different version of Python than what you setup with your default install.
:see: pyanaconda.ui.common.UIObject.refresh ' self.entry.settext ( self.data.addons.orgfedorahelloworld.text ) def apply ( self ): ' The apply method that is called when the spoke is left. It should update the contents of self.data with values set in the GUI elements.
' self.data.addons.orgfedorahelloworld.text = self.entry.gettext def execute ( self ): ' The excecute method that is called when the spoke is left. It is supposed to do all changes to the runtime environment according to the values set in the GUI elements. ' # nothing to do here pass. @property def ready ( self ): ' The ready property that tells whether the spoke is ready (can be visited) or not. The spoke is made (in)sensitive based on the returned value.
:rtype: bool ' # this spoke is always ready return True @property def completed ( self ): ' The completed property that tells whether all mandatory items on the spoke are set, or not. The spoke will be marked on the hub as completed or uncompleted acording to the returned value.
![Package Package](/uploads/1/2/5/6/125655110/807022572.png)
:rtype: bool ' return bool ( self.data.addons.orgfedorahelloworld.text ) @property def mandatory ( self ): ' The mandatory property that tells whether the spoke is mandatory to be completed to continue in the installation process. :rtype: bool ' # this is an optional spoke that is not mandatory to be completed return False. @property def status ( self ): ' The status property that is a brief string describing the state of the spoke. It should describe whether all values are set and if possible also the values themselves.
The returned value will appear on the hub below the spoke's title. :rtype: str ' text = self.data.addons.orgfedorahelloworld.text # If -reverse was specified in the kickstart, reverse the text if self.data.addons.orgfedorahelloworld.reverse: text = text ::- 1 if text: return ( 'Text set:%s ' )% text else: return ( 'Text not set' ).