Re: [PATCH newui 1/5] Network spoke: initial files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for hints, I'll work on it.

On 01/17/2012 07:40 PM, Chris Lumens wrote:
+class NetworkSpoke(NormalSpoke):
+    builderObjects = ["networkWindow"]
+    mainWidgetName = "networkWindow"
+    uiFile = "spokes/network.ui"
This is an annoying little bit of duplication, but you need to add:

        title = N_("NETWORK CONFIGURATION")

or you won't get a title on the hub.  I should fix it to pull this
information from the glade file, but for now just add it to your code.

You'll also need an icon.  The one on the mockups is:

        icon = "network-transmit-receive-symbolic"

+    @property
+    def completed(self):
+        # enabled?
+        pass
Your completed method should return a boolean, probably based on whether
or not there is any networking up at all.

+    @property
+    def status(self):
+        # active connections?
+        pass
Yeah, you should return some string here.  The mockups indicate a string
like "Wired (ethX) connected" or "Wireless (ethX) connected to
'Whatever'".  Also a default like "Not connected" would be helpful.  In
that case, the completed method can just check whether status == "Not
connected".  See ui/gui/spokes/source.py.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux