other languages like PHP or javascript as this if-else operator like
this
myVar = checking == 1? 'string': 'other string'
is this stuff exist in python?
thanks!
--
http://mail.python.org/mailman/listinfo/python-list
I use WX gui so the user doesn't actually need it, Is their any way to
hide it?
thanks
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 26, 2:52 am, Scott David Daniels wrote:
> Chris Rebert wrote:
> > On Thu, Dec 25, 2008 at 3:32 PM, Gandalf wrote:
> >> I use WX gui so the user doesn't actually need it, Is their any way to
> >> hide it?
>
> > Make sure your Python program is ru
Hi,
I'm trying to capture the text word under the user cursor,
so I was searching the win32 lib for functions I can use.
i used this to fined the controller under the cursor
win32gui.WindowFromPoint(win32gui.GetCursorPos())
to get the controller, but then when I try to read the text with this
GetW
I'm searching the win32gui hooks for a function to get the windowClass
position any idea?
thanks!
--
http://mail.python.org/mailman/listinfo/python-list
Hi, everyone
I'm searching the win32gui lib to find a way to get the text under the
user cursor.
so far I managed to find only the controller ID which under the cursor
this way
cursorID = win32gui.WindowFromPoint(win32gui.GetCursorPos())
their is function called GetWindowText I tried to use but i
thank you I'm checking autoit documentation...
--
http://mail.python.org/mailman/listinfo/python-list
how can I do width python a normal for loop width tree conditions like
for example :
for x=1;x<=100;x+x:
print x
thanks
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 18, 12:39 pm, Duncan Booth <[EMAIL PROTECTED]>
wrote:
> Gandalf <[EMAIL PROTECTED]> wrote:
> > how can I do width python a normal for loop width tree conditions like
> > for example :
>
> > for x=1;x<=100;x+x:
> > print x
>
> What yo
On Oct 18, 12:39 pm, Duncan Booth <[EMAIL PROTECTED]>
wrote:
> Gandalf <[EMAIL PROTECTED]> wrote:
> > how can I do width python a normal for loop width tree conditions like
> > for example :
>
> > for x=1;x<=100;x+x:
> > print x
>
> What yo
every time I switch editor all the script indentation get mixed up,
and python start giving me indentation weird errors.
indentation also hard to follow because it invisible unlike brackets
{ }
is there any solution to this problems?
thank you!
--
http://mail.python.org/mailman/listinfo/pyth
I'm new to py2exe.
i'm using python 2.5 on XP
and py2exe 0.6.6
does someone know what may be wrong with this script:
from distutils.core import setup
import py2exe
setup(console=['babylon.py'],
options = {
"py2exe": {
"packages": ["pyHook", "encodings", "pywinauto",
"pywinauto.controls",
OK this question is not clear enough.
I'm trying to convert my python script to executable file.
it seems than the simple setup(console=['file.py']) won't work in my
case because i use unsupported modules (like pywinauto and extra).
this are the modules I import:
import wx
import wx.html as htm
I try to reach a specific wx StaticText element's text and to change
it by clicking on a button
now let's say the this is my element:
wx.StaticText(panel, 15, "Hello" ,(30, 70) , style=wx.ALIGN_CENTRE)
And this is my EVT_BUTTON bind function :
def OnClick(event):
which code shude i enter to
On May 23, 3:29 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote:
> On May 23, 8:24 am, Gandalf <[EMAIL PROTECTED]> wrote:
>
> > I try to reach a specific wx StaticText element's text and to change
> > it by clicking on a button
>
> > now let's say the
How can i bind function that handle the mouse clicking window X event
or clicking alt+F4
thanks
--
http://mail.python.org/mailman/listinfo/python-list
On May 23, 6:25 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote:
> On May 23, 10:45 am, Gandalf <[EMAIL PROTECTED]> wrote:
>
> > How can i bind function that handle the mouse clicking window X event
> > or clicking alt+F4
>
> > thanks
>
> You really need
you've been very helpful but still i have only one problem. I wont the
window not to be close after clicking the X button.
I wont the program to stay on the toolbar
thanks!
--
http://mail.python.org/mailman/listinfo/python-list
On May 23, 10:47 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote:
> On May 23, 1:44 pm, Gandalf <[EMAIL PROTECTED]> wrote:
>
> > you've been very helpful but still i have only one problem. I wont the
> > window not to be close after clicking the X button.
> >
As i said before I work with the WX library on a windows XP operation
system.
Now i wont to create an application which ran at the background and
wait till the user double click on a text word OF any other python
or none python application which ran on the desktop, and when this
event append i w
how do i write this code in order for python to understand it and
print me the x variable
x=1
def ():
x++
if x > 1:
print "wrong"
else :
print x
()
--
http://mail.python.org/mailman/listinfo/python-list
On May 30, 12:14 am, John Henderson <[EMAIL PROTECTED]> wrote:
> Gandalf wrote:
> > how do i write this code in order for python to understand it
> > and print me the x variable
>
> > x=1
> > def ():
> > x++
> > if x > 1:
> >
When we discuss a global window events. and i wanted to generate
event when the user click on a key out of my application. I promised
that if will found how to do it i'l show you.
I found this article which explain very simply how to hook py width
pyHook lib
http://mindtrove.info/articles/monitor
I have script which being triggered by pressing CTRL+Right mouse click
from any place in my O.P , Now I need to generate automatically event
like copy my selected item or double clicking the right mouse cursor
without user interfering.
how can i implement this width python?
thanks!
--
http://mail
On May 30, 3:43 pm, Larry Bates <[EMAIL PROTECTED]> wrote:
> Gandalf wrote:
> > I have script which being triggered by pressing CTRL+Right mouse click
> > from any place in my O.P , Now I need to generate automatically event
> > like copy my selected item or double clic
Hi Diez, I can't see how it matter which GUI-Toolkit i uses because I
can combine libraries.
I think all that matter is that i work with windows XP.
if you ever done something like that or you familiar with article
which can show me how to implement what I asked it would help me
Thank you very m
Hi every one. I need comprehensive tutorial for the following
library :
1. pyWinAuto
2. winGuiAuto
Thanks in advance
--
http://mail.python.org/mailman/listinfo/python-list
Hi scott, you couldn't be more wrong about my laziness. I straggle
with my poor English for hours to fined what I'm looking for.
I found a very simple and not comprehensive tutorial for the pyWinAuto
lib in this address http://pywinauto.openqa.org/
but it only show how to do the basic, and my knowl
On Jun 1, 1:41 pm, Larry Bates <[EMAIL PROTECTED]> wrote:
> Gandalf wrote:
> > Hi scott, you couldn't be more wrong about my laziness. I straggle
> > with my poor English for hours to fined what I'm looking for.
> > I found a very simple and not comprehensive
is their any graphic program for handling sqlite like phpmyadmin or
access in python?
thanks
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 3, 11:53 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> Gandalf schrieb:
>
> > is their any graphic program for handling sqlite like phpmyadmin or
> > access in python?
>
> rekall?
>
> Diez
mmm, for windows... ?
--
http://mail.python.org/mailman/listinfo/python-list
http://aspn.activestate.com/ASPN/docs/ActivePython/2.2/PyWin32/PyCRichEditCtrl__GetSelText_meth.html
GetSelText()
I tried to import win32ui.PyCRichEditCtrl, But the shell told me
their's no such module.
If anyone can show me an example it would be great
Thanks!
--
http://mail.python.org/mai
On Jun 4, 8:21 pm, sturlamolden <[EMAIL PROTECTED]> wrote:
> On Jun 4, 8:14 pm, Gandalf <[EMAIL PROTECTED]> wrote:
>
> > I tried to import win32ui.PyCRichEditCtrl, But the shell told me
> > their's no such module.
>
> There isn't, as it is a class. wi
On Jun 4, 11:46 pm, "David C. Ullrich" <[EMAIL PROTECTED]> wrote:
> In article
> <[EMAIL PROTECTED]>,
>
> Gandalf <[EMAIL PROTECTED]> wrote:
> > On Jun 4, 8:21 pm, sturlamolden <[EMAIL PROTECTED]> wrote:
> > > On Jun 4, 8:14 pm, G
I found some script that send keys , But I couldn't manage to send
CTRL+c with none of them
can any one tell me what i'm doing wrong:
import win32api
import win32com.client
shell = win32com.client.Dispatch("WScript.Shell")
shell.Run("Notepad")
win32api.Sleep(100)
shell.AppActivate("Notepad")
wi
I works with python 2.5 on windows, And I use sqlite3
Now, I have problem searching string in Hebrew in my database
I have table called "test" with field num and test
firs row i insert "1" and "עברית" (that is "Hebrew" in Hebrew)
second row i insert "2" and "English"
now this code will print
On Jun 8, 11:00 am, Gerhard Häring <[EMAIL PROTECTED]> wrote:
> Gandalf wrote:
> > I works with python 2.5 on windows, And I use sqlite3
>
> > Now, I have problem searching string in Hebrew in my database
>
> > I have table called "test" with field
I'm trying to convert mysql database to sqlite. is their any free tool
that does that?
I can convert my mysql db to XML file through phpmyadmin, will it be
easier to convert from XML to SQlite then from Mysql?
--
http://mail.python.org/mailman/listinfo/python-list
I used sqliteadmin to manage my sqlite database and I copy past
queries translated from mysql phpmyadmin output it worked (little
slowly but worked...), the only problem now is that sqliteadmin stored
my hebrew char as ANSI instead of UTF-8 and now I don't know how to
search data from this table.
now I understand my problem better so their is a good chance you
manage to help me.
I have a SQlite database full with ANSI Hebrew text , and program that
uses WXpython
Now, I use a- 'wx.TextCtrl' item to receive input from the user, and
when I try to search the database he don't understand this c
Yes, it is 1255 it's surprising you know that.
any way this is the code I tried
search=cnrl.GetValue()
search= search.decode("cp1255")
search=search.encode("utf8")
word=''
category=1
cur.execute('select * from hebrew_words where word like ?',
[''+se
OK it did worked!
I just should have been encoding to cp1255
search=cnrl.GetValue()
search= search.encode("cp1255")
cur.execute('select * from hebrew_words where word like ?',
['%'+search+'%'])
Thank you!
you are the best
--
http://mail.python.org/mailman/listinfo/python-list
You know these application like ICQ or winamp which stay at the front
of the desktop as long as the user doesn't minimize it. I wont to do
the same with my application in python.
I still didn't manage to make pywinauto to auto set my window frame in
focus reliability so I was hoping this will solv
Hi every one. What is the similar python WX style property for CSS
text-align?
I need this item text to start from the right direction:
aaa= html.HtmlWindow(self, -1, style=wx.SIMPLE_BORDER, size=(250, 60))
aaa.LoadPage('../../aa.html')
Thanks!
--
http://mail.python.org/mailman/listinfo
On Jun 17, 6:43 pm, Gandalf <[EMAIL PROTECTED]> wrote:
> Hi every one. What is the similar python WX style property for CSS
> text-align?
>
> I need this item text to start from the right direction:
>
> aaa= html.HtmlWindow(self, -1, style=wx.SIMPLE_BORDER, size=(250, 60)
On Jun 17, 7:49 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote:
> On Jun 17, 11:45 am, Gandalf <[EMAIL PROTECTED]> wrote:
>
> > On Jun 17, 6:43 pm, Gandalf <[EMAIL PROTECTED]> wrote:
>
> > > Hi every one. What is the similar python WX style property for CSS
since you brought up this issue, please tell me where can I fine
menual for this library?
can i generate dynamic GUI from it?
If not, Is there any way to generate dynamic GUI (one that can change
according to the user input) with HTML-CSS- javascript similar
environment?
--
http://mail.python.org/m
On Jun 17, 8:43 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote:
> On Jun 17, 1:20 pm, Gandalf <[EMAIL PROTECTED]> wrote:
>
> > since you brought up this issue, please tell me where can I fine
> > menual for this library?
>
> You want the manual for wxPython? Go to
hi every one.
I have program which uses this pyHook lib, and when I try to compile
it using py2exe the pyhook don't work. it gives me no error. the
program works fine beside the function of this lib.
why does it append ?
is their any solution?
I would be glad to know if anyone ever experienced thi
If you want to compile your program the new py2exe release 0.6.8 wont
work!
the pyhook function will be ignored
you'll have to uninstall the 0.6.8 version and to install the 0.6.6
instead
it took me 2 days to find the solution.
maybe some day someone will bump the same problem and find this
mes
Hi every one I'm looking for a good alternative db to replace sqlite
I'm using pySQlite3, And I tried to translate very big database from
Mysql to sqlite.
I generated through PHP a python script that insert 200,000 records
to my sqlite db and took me more then 5 hours and managed to insert
only
you where right!
thank you !
--
http://mail.python.org/mailman/listinfo/python-list
I use to write code with PHP.
To ran script width PHP I need to open new file inside my WWW
directory and name it somethin.php and then to write my script inside
tags
how can i ran script with python
thenks
--
http://mail.python.org/mailman/listinfo/python-list
On May 10, 2:36 pm, Bjoern Schliessmann wrote:
> Gandalf wrote:
> > how can i ran script with python
>
> It depends on your web server configuration. To get your web server
> execute Python code, there are several alternatives like
>
> * CGI
> * FastCGI
> * mod
Thanks guys I think you miss understood me. i have been mining to use
python to create a none web application.
And i found out that i can ran python scripts by calling them from CMD
or just raning them from windows
--
http://mail.python.org/mailman/listinfo/python-list
my manual contain chapter about lists with python. when i try to copy
paste :
li = ["a", "b", "mpilgrim", "z", "example"] (1)
it i get this errore:
"TypeError: 'list' object is not callable"
i was wondering if their is any special module I should import before
i use this function
i know i as
Hi every one. I'm not sure whether my framework is relevant so i will
mention it any way.
windows XP
python 2.5.2
wx 2.8 something...
I'm trying to scroll a panel element and it doesn't work. (maybe this
function doesn't supposed to scroll element like this)
this is the relevant code:
wx.Frame._
On Aug 21, 2:42 pm, Gandalf <[EMAIL PROTECTED]> wrote:
> Hi every one. I'm not sure whether my framework is relevant so i will
> mention it any way.
> windows XP
> python 2.5.2
> wx 2.8 something...
>
> I'm trying to scroll a panel element and it doesn
I'm creating a table with gridSizer, and I'm trying to set cell
background like I use to do with HTML
so I tried this:
BoxName =wx.BoxSizer(wx.HORIZONTAL)
BoxName.SetBackgroundColour('#cce8fa')
and it told me their is no sauce function
so what is the right way to do it?
thanks!
--
http://mail
thanks!
--
http://mail.python.org/mailman/listinfo/python-list
why when I try to insert gridSizer to a panel which already inside
another panel the gridSizer doesn't work?
this is the code:
panel3= wx.Panel(self, -1, (0, 60), size=(400, 240) ,
style=wx.SIMPLE_BORDER);
panel3.SetBackgroundColour('#dadadb')
panel = wx.Panel(panel3, wx.ID_ANY, s
how can I declare a variable with another variable name?
for example I will use PHP:
$a= "hello";
$a_hello="baybay";
print ${'a_'.$a) //output: baybay
how can i do it with no Arrays using python
thanks!
--
http://mail.python.org/mailman/listinfo/python-list
OK thank you all !
sometimes you just getting use to somethings...
--
http://mail.python.org/mailman/listinfo/python-list
the following code's panel elements doesn't react like a table though
is haze boxsizer
What is wrong here? :
panel3=wx.Panel(self,-1,(10,10), style=wx.SIMPLE_BORDER,
size=(370, 150))
panel3.SetBackgroundColour("#ff")
text1=wx.StaticText(panel3, -1, 'Hello')
text2=w
why this code is no giving any scroll?
--
http://mail.python.org/mailman/listinfo/python-list
forgot the code, sorry,
the code:
import wx
class MyFrame(wx.Frame):
def __init__(self, parent, ID, title):
wx.Frame.__init__(self, parent, ID, title, size=(400, 250))
myscrolledwindow = wx.PyScrolledWindow(self, -1)
sizer = wx.BoxSizer()
myscrolledwindow.SetSizer(
if i want to print utf-8 string i should writre:
print u"hello word"
but what happen if i want to print variable?
thank you
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 1, 11:59 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> Gandalf schrieb:
>
> > if i want to print utf-8 string i should writre:
>
> > print u"hello word"
>
> No, you don't. You write
>
> print u"hello wo
Most of you probably speaks Latin language, so you wont understand
the problem.
when I try to write Hebrew in my statictext the last punctuation marks
get mixed up.
does someone have a solution for this?
this is the code :
text=wx.StaticText(panel3, -1, Hebrew_string, style=wx.ALIGN_RIGHT)
tha
RichD contributed wisdom to news:b968c6c6-5aa9-
4584-bd7a-5b097f17c...@pu9g2000pbc.googlegroups.com:
> Web gurus, what's going on?
>
That is the fault of the site itself.
If they are going to block access to users then they should also block
access to the automated spiders that hit the site t
RichD contributed wisdom to news:badd4188-196b-
45e3-ba8a-511d47128...@nh8g2000pbc.googlegroups.com:
> On Jan 30, Gandalf Parker
> wrote:
>> > Web gurus, what's going on?
>>
>> That is the fault of the site itself.
>> If they are going to block acces
Hi everyone,
I was trying out smtplib and found out that I can email to anyone in my domain
but not to an email address not in the domain. From browsing on the web, it
seems that this has to do with the configuration of the mail server. The mail
server in my organization is MS exchange. Obvious
72 matches
Mail list logo