Go to advanced search

by Mahan_Micro
Fri Sep 04, 2015 5:55 am
Forum: Python
Topic: my problem with pygame EVENT !
Replies: 8
Views: 2913

Re: my problem with pygame EVENT !

import pygame ,sys import pygame.locals as GAME_GLOBALS import pygame.event as GAME_EVENTS width = 600 height = 600 pygame.init() surface = pygame.display.set_mode((width,height)) pygame.display.set_caption(' Mohsen ') #====================================================== playersize = 20 playerX ...
by Mahan_Micro
Thu Sep 03, 2015 8:37 am
Forum: Python
Topic: my problem with pygame EVENT !
Replies: 8
Views: 2913

Re: my problem with pygame EVENT !

Post your full code too. It's hard to tell if this is the problem without this and the full error message. my code is in Mag pi 33 , page: 33 befor this I use pygame without problem for drawing different object like circle and... and now when I push UP KEY of keyboard my program stop and error apea...
by Mahan_Micro
Thu Sep 03, 2015 2:33 am
Forum: Python
Topic: my problem with pygame EVENT !
Replies: 8
Views: 2913

my problem with pygame EVENT !

Hi I'm learning python by Mag pi :) in mag pi 33 , there is a code for keyboard contrrol (keyboard.py) when i compile it, program runs correctly but when I push a key of keyboard following error apear and program stop: if event.key == pygame.K_UP: 'module' object has no attribute 'K_UP' :!: :!: :!: ...
by Mahan_Micro
Wed Sep 02, 2015 3:51 pm
Forum: Beginners
Topic: sharing the internet between laptop and RPI
Replies: 11
Views: 2632

Re: sharing the internet between laptop and RPI

I find its ip by ip scanner and it was : 192.168.137.143 and rpi hasnt internet !! -a- is the RPI ethernet connected to router or to the laptop? -b- on win laptop cmd "ipconfig", what you see? -c- on RPI terminal "ifconfig", what you see? but best is you report all like with this script on RPI: htt...
by Mahan_Micro
Wed Sep 02, 2015 1:45 am
Forum: Beginners
Topic: help for offline install
Replies: 4
Views: 785

Re: help for offline install

disorientedp wrote:
Mahan_Micro wrote:Hi to all
I want to know how I can install the app on RPI without internet ??
untill now I use sudo apt-get... to install online

is there any way??????
thank you :)
Install what app?
every thing like python library or for example: luvcview , xrdp ...
by Mahan_Micro
Tue Sep 01, 2015 3:11 pm
Forum: Beginners
Topic: help for offline install
Replies: 4
Views: 785

help for offline install

Hi to all
I want to know how I can install the app on RPI without internet ??
untill now I use sudo apt-get... to install online

is there any way??????
thank you :)
by Mahan_Micro
Tue Sep 01, 2015 6:27 am
Forum: Beginners
Topic: sharing the internet between laptop and RPI
Replies: 11
Views: 2632

Re: sharing the internet between laptop and RPI

you can cross connect RPI and laptop by ethernet cable and use laptop WIFI internet lets say your router is at 192.168.1.1 after sharing the wifi network on a win laptop it changes the ethernet port to a sub network, something like 192.168.33.50 but you can force the ethernet port back to a fix 192...
by Mahan_Micro
Mon Aug 31, 2015 9:06 pm
Forum: Beginners
Topic: sharing the internet between laptop and RPI
Replies: 11
Views: 2632

sharing the internet between laptop and RPI

Hi I work raspberry pi with XRDP and remote desktop on windows 7 my laptop has internet (home wifi) but my RPI dosent have internet I connect to rpi by remote desktop with the ip that ifconfig command gives to me when I share the internet on LAN , i cant connect to RPI with last ip (that if config g...
by Mahan_Micro
Mon Aug 31, 2015 5:26 pm
Forum: The MagPi
Topic: my problem with pygame EVENT !
Replies: 1
Views: 1258

Re: my problem with pygame EVENT !

excuse me , program runs correctly but when I push a key of keyboard this error apear and program stop
by Mahan_Micro
Mon Aug 31, 2015 5:24 pm
Forum: The MagPi
Topic: my problem with pygame EVENT !
Replies: 1
Views: 1258

my problem with pygame EVENT !

Hi I'm learning python by Mag pi :) in mag pi 33 , there is a code for keyboard contrrol (keyboard.py) when i compile it,i see following error : if event.key == pygame.K_UP: 'module' object has no attribute 'K_UP' :!: :!: :!: why????? in first I import : import pygame, sys import pygame.locals as GA...
by Mahan_Micro
Sat Aug 22, 2015 4:08 pm
Forum: Beginners
Topic: remote_access
Replies: 6
Views: 1010

Re: remote_access

kusti8 wrote:
Mahan_Micro wrote:Thank you :)
is there another way??
:?:
Well, why won't that work for you? There are plenty of other ways, but this is one of the simplest.

yes,as you say this is so simple but is this secure??
I want to know other ways ,too, even it isn't simple !
by Mahan_Micro
Sat Aug 22, 2015 2:21 pm
Forum: Beginners
Topic: remote_access
Replies: 6
Views: 1010

Re: remote_access

Thank you :)
is there another way??
:?:
by Mahan_Micro
Sat Aug 22, 2015 8:19 am
Forum: Beginners
Topic: remote_access
Replies: 6
Views: 1010

remote_access

Hi
I want to control an LED connected to the GPIO of Raspberry pi2, from any where of the world by internet !
and I don't know what I must do??
Can you help me ?? :ugeek:
do you run this project?? :?: :?: :!:
by Mahan_Micro
Fri Aug 21, 2015 4:02 pm
Forum: Beginners
Topic: pygame module and my error !
Replies: 5
Views: 894

Re: pygame module and my error !

with this code :
pygame.draw.circle(window,(255,255,0),
(200, 200), 20, 0)

it works ! :lol: :lol: :lol:
by Mahan_Micro
Fri Aug 21, 2015 2:08 pm
Forum: Beginners
Topic: pygame module and my error !
Replies: 5
Views: 894

Re: pygame module and my error !

I coudent run this code correctly !! only a window opened with a color that I want
Is there any one than run this code on board (Raspbian) and explain to me?? :?: :?: :?: :?: :roll:
by Mahan_Micro
Fri Aug 21, 2015 6:00 am
Forum: Beginners
Topic: pygame module and my error !
Replies: 5
Views: 894

pygame module and my error !

Hi My first simple graphical code is: import pygame width = 640 height = 480 radius = 100 fill = 1 pygame.init() window = pygame.display.set_mode((width, height)) window.fill(pygame.Color(255, 255, 255)) while True: pygame.draw.circle(window, pygame.Color(255, 0, 0), (width/2, height/2), radius, fil...
by Mahan_Micro
Thu Aug 20, 2015 9:21 am
Forum: Beginners
Topic: Blink Project and my problem
Replies: 4
Views: 706

Re: Blink Project and my problem

Thank you,All my dear friend :D
and special thanks to KLL ;)
by Mahan_Micro
Thu Aug 20, 2015 5:58 am
Forum: Beginners
Topic: Blink Project and my problem
Replies: 4
Views: 706

Blink Project and my problem

Hi I want run a Blink Project when I write the following code: import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) GPIO.setup(7, GPIO.OUT) GPIO.output(7,True) time.sleep(1) GPIO.output(7,False) time.sleep(1) GPIO.output(7,True) time.sleep(1) GPIO.output(7,False) GPIO.cleanup() -------------...
by Mahan_Micro
Wed Aug 05, 2015 4:48 am
Forum: Other languages
Topic: پارسی
Replies: 8
Views: 11540

Re: پارسی

I'm Ready too

سلام به همه ایرانیای عزیز
ایشالا زودتر این انجمن راه بیفته و دور هم با این برد کار کنیم . لذت ببریم

Go to advanced search