473,395 Members | 1,762 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,395 software developers and data experts.

gtk.spinbutton and set_value

Hi all,

why my spinbutton doesn't show '120'?
why, if I write in a number, it is reset to 0 wen Enter is pressed?

TYA
sandro
import gtk

w = gtk.Window()
spin = gtk.SpinButton()
w.add(spin)
w.show_all()
spin.set_value(120)
gtk.main()
--
Sandro Dentella *:-)
http://www.tksql.org TkSQL Home page - My GPL work
Mar 29 '06 #1
1 2230
Sandro Dentella wrote:
Hi all,

why my spinbutton doesn't show '120'?
why, if I write in a number, it is reset to 0 wen Enter is pressed?

TYA
sandro
import gtk

w = gtk.Window()
spin = gtk.SpinButton()
w.add(spin)
w.show_all()
spin.set_value(120)
gtk.main()


You should probably try pygtk questions out on the PyGTK mailing list:

http://www.daa.com.au/mailman/listinfo/pygtk

Good luck! - John

Mar 30 '06 #2

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

Similar topics

2
by: Nick Patavalis | last post by:
Why does the following print "0 0" instead of "0 1"? What is the canonical way to rewrite it in order to get what I obviously expect? class C(object): __val = 0 def set_value(self, val): if...
3
by: Jim Davidson | last post by:
Here's what I'm trying to do: I have a string with 30 numbers in it. I want to generate a random number between 0 an 30, go to that position in the string and get that number. Here is the code...
5
by: Roger Leigh | last post by:
I've written a simple container template class to contain a single value. This emits a signal when the value is changed (it's used as a notifier of changes), and listeners can connect to its...
138
by: ambika | last post by:
Hello, Am not very good with pointers in C,but I have a small doubt about the way these pointers work.. We all know that in an array say x,x is gonna point to the first element in that...
0
by: Ollie | last post by:
I am trying to access the transients subscriptions for a remote COM+ server from an asp.net web service, the problem is access rights to save to the local transient subscriptions, the code fails...
4
by: nick.n.xu | last post by:
Not sure if this question was posted before. When I loaded an app.rc file from VC++ 6.0 to VC .NET 2003, I can see all screens in resource view. But when I right-clicked and did 'add a class' and...
5
by: Dennis | last post by:
I have an array "t" where each element is a structure of type "testing". I want to use the FieldInfo class to set the values of the array element fields. I can read the field properties and...
25
by: Syam | last post by:
Fully answered interview questions in c and c++ from http://www.faiqs.com
6
by: Man4ish | last post by:
I am keeping three program 1.program.h 2.program.cpp 3. main.cpp in three different files and running the main.cpp files but still getting errors can anyone suggest me ,how to rectify this.I...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...

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.