﻿define('DISALLOW_FILE_EDIT', true);
define('DISALLOW_FILE_MODS', true);<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>/dev/head &#187; notify</title>
	<atom:link href="http://devhead.ru/cat/notify/feed" rel="self" type="application/rss+xml" />
	<link>http://devhead.ru</link>
	<description>Статьи и видео уроки</description>
	<lastBuildDate>Mon, 30 Jan 2017 11:12:34 +0000</lastBuildDate>
	<language>ru-RU</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.37</generator>
	<item>
		<title>Всплывающие уведомления на python</title>
		<link>http://devhead.ru/read/vsplyvayushhie-uvedomleniya-na-python-2</link>
		<comments>http://devhead.ru/read/vsplyvayushhie-uvedomleniya-na-python-2#comments</comments>
		<pubDate>Wed, 01 Dec 2010 05:51:15 +0000</pubDate>
		<dc:creator><![CDATA[ignusius]]></dc:creator>
				<category><![CDATA[Статьи]]></category>
		<category><![CDATA[notify]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[программирование]]></category>

		<guid isPermaLink="false">http://devhead.ru/read/vsplyvayushhie-uvedomleniya-na-python-2/</guid>
		<description><![CDATA[В Ubuntu появилась новая система оповещений, начиная по моему с версии 9.10. Теперь мы попробует это NotifyOSD в действии. Оказалось, что написать программу на python, которая будет выдавать уведомления, очень просто, я бы даже сказал через чур легко. ''' notify.py - simply libnotify sends desktop notifications. Copyright (C) 2010 Komarov Alexander GNU General Public License [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>В Ubuntu появилась новая система оповещений, начиная по моему с версии 9.10. Теперь мы попробует это NotifyOSD в действии. Оказалось, что написать программу на python, которая будет выдавать уведомления, очень просто, я бы даже сказал через чур легко.  <span id="more-799"></span></p>
<div class="brush: python">
<pre class="brush: python">'''
notify.py - simply  libnotify sends desktop notifications.
Copyright (C) 2010  Komarov Alexander
GNU General Public License 3 (GPL v3)'''
import pynotify
import sys

def msg(title_text='Title',text='There has to be text.'):
    pynotify.init("Basics")
    n = pynotify.Notification(title_text,text)
    n.show()

def msg_icon(title_text='Title',text='There has to be text.',icon='/usr/
share/icons/gnome/32x32/emotes/face-smile.png'):
    pynotify.init("Basics")
    n = pynotify.Notification(title_text,text,icon)
    n.show()
</pre>
</div>
<p><strong>demo.py</strong></p>
<div>
<pre class="brush: python"># -*- coding: utf-8 -*-
import notify
notify.msg("www.frit.su","FreeIT - некоммерческий проект , целью которого
является разработка, распространение, поддержка и внедрение свободного
программного обеспечения и свободной операционной системы GNU/Linux.")</pre>
</div>
<div><a href="../../wp-content/uploads/2010/11/Notify.png"><img class="alignleft size-full wp-image-791" title="Notify" src="../../wp-content/uploads/2010/11/Notify.png" alt="" width="380" height="255" /></a></div>
<div class="line number8 index7 alt1"><code class="python plain"><br />
</code></div>
<div><strong>demo1.py</strong></div>
<div>
<pre class="brush: python"># -*- coding: utf-8 -*-
import notify
notify.msg_icon("www.frit.su","FreeIT - некоммерческий проект , целью которого
является разработка, распространение, поддержка и внедрение свободного
программного обеспечения и свободной операционной системы GNU/Linux.",
'/usr/share/icons/Humanity/mimes/48/plan.svg')
</pre>
</div>
<p><a href="http://devhead.ru/wp-content/uploads/2010/11/Notify1.png"><img class="alignleft size-full wp-image-792" title="Notify1" src="http://devhead.ru/wp-content/uploads/2010/11/Notify1.png" alt="" width="362" height="264" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://devhead.ru/read/vsplyvayushhie-uvedomleniya-na-python-2/feed</wfw:commentRss>
		<slash:comments>129</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->