Talk:Arch is the best

From ArchWiki
Revision as of 10:42, 9 January 2011 by Joetotale (Talk | contribs) (Rationale for recommending page for deletion)

Jump to: navigation, search

Do you think a GTK implementation in Python would be a bit long to add to the article? Here it is:

#!/usr/bin/python

import pygtk
pygtk.require('2.0')
import gtk
import random

class ArchIsTheBest:
	def __init__(self):
		window = gtk.Window(gtk.WINDOW_TOPLEVEL)
		window.set_title("Arch is the best!")
		window.set_size_request(500,250)
		window.connect("delete_event", self.delete_event)
		window.connect("destroy", self.destroy)
		
		vbox = gtk.VBox(False, 0)
		window.add(vbox)
		vbox.show()
		
		textview = gtk.TextView(buffer=None)
		textviewb = textview.get_buffer()
		textviewt = "Arch is the best"
		textviewb.set_text(textviewt)
		textview.set_editable(False)
		textview.set_cursor_visible(False)
		textview.set_wrap_mode(True)
		vbox.pack_start(textview, True, True, 0)
		textview.show()
		
		button = gtk.Button(stock=gtk.STOCK_CLOSE)
		button.connect("clicked", lambda w: gtk.main_quit())
		vbox.pack_start(button, False, False, 0)
		button.set_flags(gtk.CAN_DEFAULT)
		button.grab_default()
		button.show()
		
		window.show()

	def delete_event(self, widget, event, data=None):
		return False
	
	def destroy(self, widget, data=None):
		gtk.main_quit()

	def main(self):
		gtk.main()

if __name__ == "__main__":
	archisthebest = ArchIsTheBest()
	archisthebest.main()

Also, is it possibly violating The Arch Way by providing a GUI to this application? I think it may just entice those Ubuntu users to jump ship to Arch if we provide this as a GUI, however it is definitely not 'simple'. Barrucadu 19:25, 13 May 2008 (EDT)

Whilst the forum thread relating to this is fun, this page does not add anything meaningful to the Arch wiki, and I don't see how this page adheres to the wiki philosophy or Arch principles (KISS minimalism). Have flagged this page for deletion. Joetotale 05:42, 9 January 2011 (EST)