473,399 Members | 3,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Hi All - Newby

Ask
G'day All,

Just thought I'd drop in and say hi. I'm new to Python, but old to software
development.

Python is one of the languages used in my new job, so I've just bought a
book, read it, and downloaded Python; It's pretty good isn't it? It's
particularly handy being able top run the same bytecode on different
platforms.

I found a link to this newsgroup, downloaded 1000 messages, and have only
put one user in my twit filter so hopefully it'll be a good resource!

I must admit to much confusion regarding some of the basics, but I'm sure
time, reading, and good advice will get rid of that. at this stage, it's
just working through some examples and getting my head around things. As an
example, if I create a window, I've been unable to force it to be a certain
size, and put a button (widget) at (say) 20,40 (x & y). Is window formatting
possible?

Thanks and I'm sure to be reading your posts soon.

Pauly

Oct 25 '05 #1
8 1798
Ask wrote:
G'day All,
(snip)

Welcome here...
I must admit to much confusion regarding some of the basics, but I'm sure
time, reading, and good advice will get rid of that. at this stage, it's
just working through some examples and getting my head around things. As an
example, if I create a window, I've been unable to force it to be a certain
size, and put a button (widget) at (say) 20,40 (x & y). Is window formatting
possible?


As you say, Python runs on a lot of platforms. It also allow the use of
a lot of GUI toolkits. So "windows formatting" isn't a Python problem -
it's specific to to toolkit you're using. Since we don't know which
you're using, there's no way to answer your question.

--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom.gro'.split('@')])"
Oct 25 '05 #2
"Ask" wrote:
As an example, if I create a window, I've been unable to force it to be a certain size, and put a
button (widget) at (say) 20,40 (x & y). Is window formatting possible?


I'm pretty sure all GUI toolkits can do that, but the exact details depend on the library
you're using.

(if you're using Tkinter, see this page: http://effbot.org/tkinterbook/place.htm )

</F>

Oct 25 '05 #3
Ask
Hi Bruno,

I'm simply using the IDLE editor to hand code, then compiling and running.

Thanks
Pauly
"bruno modulix" <on***@xiludom.gro> wrote in message
news:43*********************@news.free.fr...
Ask wrote:
G'day All,

(snip)

Welcome here...
I must admit to much confusion regarding some of the basics, but I'm sure
time, reading, and good advice will get rid of that. at this stage, it's
just working through some examples and getting my head around things. As
an
example, if I create a window, I've been unable to force it to be a
certain
size, and put a button (widget) at (say) 20,40 (x & y). Is window
formatting
possible?


As you say, Python runs on a lot of platforms. It also allow the use of
a lot of GUI toolkits. So "windows formatting" isn't a Python problem -
it's specific to to toolkit you're using. Since we don't know which
you're using, there's no way to answer your question.

--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'on***@xiludom.gro'.split('@')])"

Oct 25 '05 #4
> confusion regarding some of the basics...

Reset your brain.

This came up recently, and despite there being a pending quibble, I
think it's extremely useful to the experienced programmer/new
Pythonista:

http://effbot.org/zone/python-objects.htm

And since Frederik is apparenlty reading this thread, it gives me an
opportunity to say thanks for it!

mt

Oct 26 '05 #5
D H
Ask wrote:

I found a link to this newsgroup, downloaded 1000 messages,
You might check out the python-tutor list if you have beginner
questions: http://mail.python.org/mailman/listinfo/tutor

I must admit to much confusion regarding some of the basics, but I'm sure
time, reading, and good advice will get rid of that. at this stage, it's
just working through some examples and getting my head around things. As an
example, if I create a window, I've been unable to force it to be a certain
size, and put a button (widget) at (say) 20,40 (x & y). Is window formatting
possible?


You might also see wxpython: http://www.wxpython.org/ The "wiki" there
has some examples and beginner resources.
Oct 27 '05 #6
"Ask" <pu@pmville.com> wrote:

I'm simply using the IDLE editor to hand code, then compiling and running.


That doesn't help. wxPython, Tkinter, and pyQt are just a few of the
packages that can be used to put windows on the screen from Python. Python
has no built-in user interface stuff, so whatever you are using to place a
window is something you downloaded, or something that was installed with
your Python. That's what we need to find out.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Oct 27 '05 #7
Ask
Hi TIm,

Ahh I see.. (Told you I was a newby!) ;-)

Tkinter is what I'm using as that was loaded by default with the
installation of Python I am using.

Thanks

Regards
Pauly

"Tim Roberts" <ti**@probo.com> wrote in message
news:5n********************************@4ax.com...
"Ask" <pu@pmville.com> wrote:

I'm simply using the IDLE editor to hand code, then compiling and running.


That doesn't help. wxPython, Tkinter, and pyQt are just a few of the
packages that can be used to put windows on the screen from Python.
Python
has no built-in user interface stuff, so whatever you are using to place a
window is something you downloaded, or something that was installed with
your Python. That's what we need to find out.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.

Oct 27 '05 #8
"Ask" <pu@pmville.com> wrote:

Hi TIm,

Ahh I see.. (Told you I was a newby!) ;-)

Tkinter is what I'm using as that was loaded by default with the
installation of Python I am using.


Now your question makes good sense, especially if you were coming from
something like the Win32 API.

In Tkinter, as in MOST of the GUI toolkits for Python, you dont just place
a widget at a specific X,Y with a specific width and height. The problems
with that kind of approach are well known; such layouts don't scale with
different fonts, they look bad when the owning window is stretched, they
don't compensate for screen sizes, etc.

The various toolkits have different methods for managing this. In Tk, the
concept is called a "geometry manager". You use a geometry manager to
define the RELATIONSHIP between widgets, and between the widgets and the
owning window. The geometry manager, then, worries about the exact
placement and size.

Googling for "tkinter geometry manager" should prove fruitful. Here is an
excellent introduction:

http://effbot.org/zone/tkinter-geometry.htm

There is a fabulous book called "Python and Tkinter Programming" by John
Grayson, ISBN 1884777813. If you will be getting serious with Tkinter, I
strongly recommend it.

Personally, I started with Tkinter, but I couldn't wrap my brain around the
details. I switched to wxPython, and never looked back.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Oct 29 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Damien | last post by:
I have just built a simple stopwatch application, but when i f5 to get things goings i get this message, An unhandled exception of type 'System.ArithmeticException' occurred in...
0
by: Pete | last post by:
Hi All, A total Newby with, possibly, a daft question? However, until I can get a reasonable explanation I am disinclined towards going further. Here goes: I recently downloaded the latest...
0
by: marco | last post by:
I'm trying to parse a xml bookmarkpage with php. I found a very useful example script about how you can parse a xml document with php. The scriptworks really smooth. The xml test document (See...
10
by: Fred Nelson | last post by:
Hi: I have programmed in VB.NET for about a year and I'm in the process of learing C#. I'm really stuck on this question - and I know it's a "newby" question: In VB.NET I have several...
4
by: Fred Nelson | last post by:
I have an applicatioin that I'm writing that uses a "case" file that contains over 350 columns and more may be added in the future. I would like to create a dataset with all the column names and...
4
by: Fred Nelson | last post by:
Hi: I'm developing a web application that needs to have five values, each retrieved from cookies on many pages. If I have five "Request.Cookies" commands together does this cause five "round...
2
by: Fred Nelson | last post by:
Hi: I'm working on a VS2005 web application and I have what is probabably a "newby" question. In VS2003 I could drag a textbox/button/etc on to a form and position it with the mouse. I...
2
by: johnnyG | last post by:
Greetings, I'm studying for the 70-330 Exam using the MS Press book by Tony Northrup and there are 2 side-by-side examples of using the SHA1CryptoServiceProvider to create a hash value from a...
10
by: Charles Russell | last post by:
Why does this work from the python prompt, but fail from a script? How does one make it work from a script? #! /usr/bin/python import glob # following line works from python prompt; why not in...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.