473,668 Members | 2,759 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1826
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******** *************@n ews.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.c om...
"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
2603
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 system.drawing.dll Additional information: Overflow or underflow in the arithmetic operation.
0
1830
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 stable release and once activated it requested access to the net. Without access it would come up with recognition and 'localhost' connection errors? Can anyone please tell me:
0
1581
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 ‘Testxml' beneath) is parsed correctly and with the php sniplet: $counting=count($xmlC->obj_data->DATA->IP_RECORD); //to find out the number of elements in the array I can figure out how much IP_RECORD elements (=2) there are in the DATA array....
10
2927
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 routines that upload and process images. I can't get past "square one" with images in C#: This statement:
4
357
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 only one case record that is delivered by a stored procedure. (I have a stored procedure that works so my question is only on loading the DataSet.) The DataSet will only be used for printing form letters and then will be zapped. I would like...
4
1275
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 trips" to the browser or am I accessing one instance. If five round trips occur then I will develop some parsing algorithm to save everything I need in one cookie.
2
4154
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 converted an app to VS2005 and this still worked. In VS2005 I can't do this. I have examined the code for VS2003 and I see that there is a style="Z-INDEX... " in the asp code for the
2
3701
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 string. The vb example outputs "A94A8FE5CCB19BA61C4C0873D391E987982FBBD3" The cs example outputs "5BAA61E4C9B93F3F0682250B6CF8331B7EE68FD8" for the string "password" Question: do the 2 applications use different automatic "salts" or "seeds" to...
10
11502
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 script? files=glob.glob('*.py') print files Traceback (most recent call last):
0
8462
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8381
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8583
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8656
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7401
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6209
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4205
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4380
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2023
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.