Re: Please help!!!
On 10 Nisan, 23:16, "Paul McGuire" <[EMAIL PROTECTED]> wrote: > On Apr 10, 2:43 pm, "gslm" <[EMAIL PROTECTED]> wrote: > > > In fact ı know this, but I asked some questions like this, but ı haven't get > any answer.And I thought that may be it could be better to use a header like > this for help.Sorry! > > > Hi to all! > > I want to do a calendar with pictures near months. > > I have designed the form's view.But unfortunately, I am not be able to > > save this view as an image file.And so I am not be able to print this > > image file too. > > Question: > > How can I determine the coordinates of a button?Namely How can I use > > the comand ImageGrab for this purpose? > > > But only I wan to get the button's ares.Because my applicationis on > > this. > > > Or if it's possible, how can I print the area of this button with the > > components on it? > > > Thanks... > > Suggestion 1: "Please help!!!" is just about the worst newsgroup > subject line there is (other than those related to government > conspiracies or earthquake prediction). You are unlikely to attract > the attention of those who really know anything - they are quite busy > and must husband their time carefully. Instead, you'll get those who > are idly curious, to see what sort of junk is floating about Usenet. > > Suggestion 2: Consider your audience. What the heck are you talking > about?! Your post goes on about calendars and buttons and views. In > fact, trying to make sense of your post, it sounds like you've done > something truly bizarre, like making the whole view one giant button > with lots of images on it, and you want to print it out when the > "button" is clicked. Is this even a Python question? Any particular > GUI package you are using, such as Tk, wxPython, QT, your own homebrew > invention? ImageGrab? Sounds promising, what do the docs say? > > A more thorough discussion of these > suggestions:http://www.catb.org/~esr/faqs/smart-questions.html > > -- Paul- Alıntıyı gizle - > > - Alıntıyı göster - -- http://mail.python.org/mailman/listinfo/python-list
Please help!!!
Hi to all! I want to do a calendar with pictures near months. I have designed the form's view.But unfortunately, I am not be able to save this view as an image file.And so I am not be able to print this image file too. Question: How can I determine the coordinates of a button?Namely How can I use the comand ImageGrab for this purpose? But only I wan to get the button's ares.Because my applicationis on this. Or if it's possible, how can I print the area of this button with the components on it? Thanks... -- http://mail.python.org/mailman/listinfo/python-list
getting button's coordinations
Hi, I want to use a button's coordinations for my application.It's necessary for determinig an area for ImageGrab function.Because all widgets are on a button.And I want to have this screenshot and save it as image file. Or is there any command which print all of the view of button(all the components on the button)? regards... -- http://mail.python.org/mailman/listinfo/python-list
ImageGrab
Hi, My application's base is a button, namely all of frames, labels on a button.And I want to print this view when click the button. For this I want to use ImageGrabe.grab(bbox) function.But unfortunately, I can't use this for taking buttons area as bbox. How can i do these? -- http://mail.python.org/mailman/listinfo/python-list
Re: doing standart window icons unvisible in python
On 3 Nisan, 21:41, "gslm" <[EMAIL PROTECTED]> wrote: > Only I want to print my application's view without these icons,ok. > Thanks. And is it possible to provide .exe file for any program in python or only we can change the file as .pyw? Can you answer this question, too? Regards... -- http://mail.python.org/mailman/listinfo/python-list
Re: print the screen shot in python
On 3 Nisan, 21:38, [EMAIL PROTECTED] wrote: > On Apr 3, 1:16 pm, "gslm" <[EMAIL PROTECTED]> wrote: > > > Thanks, > > I use TKinter,os:Xp home,python25. > > I want to print all my application's view, except the close-minimize > > icons. > > I don't know enough about Tkinter, but you can use the graphics module > according to this post that should take a screenshot: > > http://snippets.dzone.com/posts/show/398 > > You should also navigate through this series of posts on taking > screenshots using PIL and the win32 > module:http://mail.python.org/pipermail/python-win32/2003-January/000714.html > > The following post has a short script using the os module to capture a > screenshot > too:http://livingcode.blogspot.com/2006/03/screenshot-in-cocoa-python.html > > Hopefully this will give you some direction. Other than that, we'll > have to wait for a Tkinter guru. > > Mike Thanks again, I have used ImageGrab function according to a member of this group.But I have problems and I have just sent a question about them. If you look, I'll be very happy. -- http://mail.python.org/mailman/listinfo/python-list
ImageGrab
root = tk.Tk() def click(): x=button1.winfo_rootx() y=button1.winfo_rooty() image=PIL.ImageGrab.grab((x,y,x+260,y+250)) image.save( 'tmp.jpeg') button1 = tk.Button(root, compound=tk.TOP, width=60, height=50,bg='black', command=click) button1.pack() root.mainloop() Hi! How can I save only the button area and then open this image file and print this? If you help, I'll be very happy! Thanks and regards... -- http://mail.python.org/mailman/listinfo/python-list
Re: doing standart window icons unvisible in python
Only I want to print my application's view without these icons,ok. Thanks. -- http://mail.python.org/mailman/listinfo/python-list
Re: print the screen shot in python
Thanks, I use TKinter,os:Xp home,python25. I want to print all my application's view, except the close-minimize icons. -- http://mail.python.org/mailman/listinfo/python-list
doing standart window icons unvisible in python
Hi! I want to do close-minimize icons unvisible in python.How can I do this?I want to do this especially for printing. And is it possible to provide .exe file for any program in python or only we can change the file as .pyw? -- http://mail.python.org/mailman/listinfo/python-list
print the screen shot in python
Hi! I want to print an application view in python.I use labels and frames in my program.And ı want to know if it is possible to print all of the view of my program? Thanks a lot... -- http://mail.python.org/mailman/listinfo/python-list
Re: problem at installing phyton on windows
On 26 Mart, 00:50, "Stephen Eilert" <[EMAIL PROTECTED]> wrote: > On Mar 25, 6:23 pm, "gslm" <[EMAIL PROTECTED]> wrote: > > > > > > > Please, can you read again? > > Yes, I understand that in phyton interpreter, i can't call phyton > > command.Thanks... > > > But how can i run '.py' files from this command line?I wanted to use > > the phyton command for this. > > > When i click a py extended file, for example calendar.py in lib > > directory, file opens, then suddenly close,except graphical ones.Why? > > How can i see the results? > > > And where can i learn which library must i import for whic class? > > > Sorry, i ask much:(But after learning these starting knowledeges, i > > read tutorials, manuals etc. > > But now i haven't found my answers yet. > > Regards... > > For god's sake. It's PYTHON, not PHYTON. > > Use IDLE and run your files from there. That way you won't have to > mess with the hideous windows console. > > However, if you really want to use the windows console, keep in mind > that it will always close automatically when the program ends. That is > true for Python, C, whatever, unless it was open before. So, Start->run, type > "cmd" then run python filename.py. If that does not work, > > it's because the path is not set correctly. > > And that's probably because you keep mispelling Python. See below: > > " But I'm sorry.I haven't understood what i must do for ruunnig phyton > command.I delete path from proportiesof my computer.Then i open > command line of phyton.But when i write phyton these view below: > Traceback: > File ""; line 1 in > NameError: name phyton is not defined " > ^^^ > > Obviously, "Phyton" will never be defined. > > Stephen- Alıntıyı gizle - > > - Alıntıyı göster - Thanks to all of you!Sorry, I must be more careful! You're right, my problem is of course this:writing the word python wrong. Now it's ok!Thanks again and again! -- http://mail.python.org/mailman/listinfo/python-list
Re: problem at installing phyton on windows
Please, can you read again? Yes, I understand that in phyton interpreter, i can't call phyton command.Thanks... But how can i run '.py' files from this command line?I wanted to use the phyton command for this. When i click a py extended file, for example calendar.py in lib directory, file opens, then suddenly close,except graphical ones.Why? How can i see the results? And where can i learn which library must i import for whic class? Sorry, i ask much:(But after learning these starting knowledeges, i read tutorials, manuals etc. But now i haven't found my answers yet. Regards... -- http://mail.python.org/mailman/listinfo/python-list
Re: problem at installing phyton on windows
On 25 Mart, 20:16, "Paul Boddie" <[EMAIL PROTECTED]> wrote: > gslm wrote: > > Hi! > > I'm too new on phyton.I have installed phyton.But when I write phyton > > command, unfortunately, i can't run.I suppose that it is bacause of > > setting path.But i can't solve. > > Can you help? > > It's "python" you should be typing, of course. If that doesn't work > then it may be a PATH issue, yes. > > > Another thing is, when i double click the .py file, there are the > > project form and the command line.How can i provide to view only the > > project? > > I think you need to rename the .py file so that it ends with .pyw - > this stops the command line window from opening, but it's only useful > if you are running a graphical program, obviously. > > Paul First, thaks a lot. But I'm sorry.I haven't understood what i must do for ruunnig phyton command.I delete path from proportiesof my computer.Then i open command line of phyton.But when i write phyton these view below: Traceback: File ""; line 1 in NameError: name phyton is not defined Sorry may be you think i'm comic but i am not be able to correct. -- http://mail.python.org/mailman/listinfo/python-list
a calendar example
Hi! I want to do a calendar where pictures on.Can you have any free example like this which can help me ? Regards... -- http://mail.python.org/mailman/listinfo/python-list
problem at installing phyton on windows
Hi! I'm too new on phyton.I have installed phyton.But when I write phyton command, unfortunately, i can't run.I suppose that it is bacause of setting path.But i can't solve. Can you help? Another thing is, when i double click the .py file, there are the project form and the command line.How can i provide to view only the project? Thanks... -- http://mail.python.org/mailman/listinfo/python-list