Pagina 1 di 1
python tipo visualbasic
Inviato: venerdì 28 settembre 2007, 22:56
da Antonio9832
Ho letto che python fa anche grafica, allora mi son detto perche non imparare.
adesso però vorrei creare qualche programmino grafico, che programma posso usare dove programma in python e posso disegnare i pulsanti, un pò tipo delphi o vb, anche perchè ormai uso, purtroppo solo quelli.
E devo dire che da qualche tempo ho iniziato con gambas, che è otiimo e sempice da usare se si viene da vb.
Cmq esiste qualcosa di grafico? Ho provato Boa, ma francamente non è un gran che, proporzionato a gambas!
Re: python tipo visualbasic
Inviato: venerdì 28 settembre 2007, 23:07
da Adaron
se ti va di applicarti un pò, puoi usare pyGTK che è un'estensione di python per usare le librerie GTK. Puoi usare un programma tipo Glade per disegnare l'interfaccia grafica e poi collegarla al codice python. In poco tempo ho ottenuto dei discreti risultati. Te lo consiglio.
Re: python tipo visualbasic
Inviato: venerdì 28 settembre 2007, 23:20
da Antonio9832
quindi usare pygtk un pò come visual C
giusto?
Re: python tipo visualbasic
Inviato: venerdì 28 settembre 2007, 23:25
da Antonio9832
magari c'è qualche guida?
Purtroppo ho la mente bloccata!in c aggiungevo le librerie grafiche, mentre in py che faccio?come lo creo l'allacciamento alla parte grafica?
sto seguendo la guida che sta su python.it ma non parla di grafica
Re: python tipo visualbasic
Inviato: sabato 29 settembre 2007, 8:55
da Adaron
usare pygtk non è come usare visual c. Allora intanto ti devi installare pygtk, glade e devi avere un editor per il codice python (anche gedit va bene). Poi vai a cercarti gli esempi di pygtk. Io ho letto sia sul
sito ufficiale che scaricando e visionando questo progetto:
pyWine
Re: python tipo visualbasic
Inviato: sabato 29 settembre 2007, 16:45
da Antonio9832
non riesco ad installarmo mi dice questo:
Codice: Seleziona tutto
~/Desktop/pygtk-2.10.4$ ./configure --prefix=/usr/bin/python2.5
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for bind_textdomain_codeset... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for some Win32 platform... no
checking for native Win32... no
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... cat: /etc/ld.so.conf.d/*.conf: No such file or directory
GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
checking for a Python interpreter with version >= 2.3.5... python
checking for python... /usr/bin/python
checking for python version... 2.5
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.5/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.5/site-packages
checking for headers required to compile python extensions... not found
configure: error: could not find Python headers
Re: python tipo visualbasic
Inviato: domenica 30 settembre 2007, 0:13
da Adaron
puoi installarlo da synaptic. il pacchetto mi pare si chiami "python-gtk2"
Re: python tipo visualbasic
Inviato: domenica 30 settembre 2007, 0:24
da Antonio9832
si avevo già risolto, mi è ancora un pochino difficile, anche se la sintassi è semplice, adeguarmi.
Putroppo vb mi ha impigrito!!!
Re: python tipo visualbasic
Inviato: domenica 30 settembre 2007, 17:59
da KeNNy_InSaId
pygtk-demo
con questo comando puoi avere degli script di esempio ma io non ci capisco niente
Re: python tipo visualbasic
Inviato: domenica 30 settembre 2007, 20:03
da marcellinux
cmq nn esisterà mai un ide simile a visual basic, cmq bisognerà sapere pure com'è fatta una gui
Re: python tipo visualbasic
Inviato: domenica 30 settembre 2007, 22:05
da Antonio9832
si! io x tipo vb intendo dire grafico, così attiro + gente! so cosa vuol dire grafico!ormai programmo solo grafico
Re: python tipo visualbasic
Inviato: domenica 30 settembre 2007, 22:49
da ryuujin
Antonio9832 ha scritto:
si! io x tipo vb intendo dire grafico, così attiro + gente! so cosa vuol dire grafico!ormai programmo solo grafico
quando leggo "programmo solo grafico", la frase per me non ha senso. Intendi programmi solo con editor visuali?
r.
Re: python tipo visualbasic
Inviato: lunedì 1 ottobre 2007, 9:39
da Antonio9832
no!fare grafica!non usare visual basic
Re: python tipo visualbasic
Inviato: lunedì 1 ottobre 2007, 11:56
da Pixel
Antonio9832 ha scritto:
no!fare grafica!non usare visual basic
ehm.. ehm.. Non ho capito cosa intendi

Potresti essere un po' più chiaro?
Ciao
Re: python tipo visualbasic
Inviato: lunedì 1 ottobre 2007, 12:23
da mcz
Ho l'impressione che siamo molto lontani da Windows.
Con QT3-Designer mi ero trovato abbastanza bene, ma con il successivo (QT4) ho smesso perchè non è più possibile salvare un progetto. Non che questo sia così terribile, ma è sempre un passo indietro.
Penso che attualmente la cosa che più si avvicina a Visual Basic sia Gambas, anche se non l'ho mai usato visto che è limitato ai 32bit.
P.S.: avevo provato con soddisfazione anche Kilyx, ma anche lui era solo a 32bit (non so se adesso esiste ancora e se funziona anche con i 64bit). Programmava in Delphi.