上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 43 下一页
摘要: __author__ = 'Administrator'import sysfrom PyQt4 import QtGuiclass MessageBox(QtGui.QWidget): def __init__(self,parent=None): QtGui.QWidget... 阅读全文
posted @ 2014-06-08 21:44 yufenghou 阅读(2533) 评论(0) 推荐(0)
摘要: __author__ = 'Administrator'import sysfrom PyQt4 import QtGuifrom PyQt4 import QtCoreclass QuitButton(QtGui.QWidget): def __init__(self,parent=None... 阅读全文
posted @ 2014-06-08 19:05 yufenghou 阅读(272) 评论(0) 推荐(0)
摘要: import sysfrom PyQt4 import QtGuifrom PyQt4 import QtCore#Icon继承了QtGui.QWidget这个类class Icon(QtGui.QWidget): def __init__(self,parent=None): ... 阅读全文
posted @ 2014-06-08 18:55 yufenghou 阅读(262) 评论(0) 推荐(0)
摘要: import sysfrom PyQt4 import QtGui#每一个qt都需要一个application对象app=QtGui.QApplication(sys.argv)#QWidget是qt所有用户界面的父类widget=QtGui.QWidget()widget.resize(250,1... 阅读全文
posted @ 2014-06-08 17:59 yufenghou 阅读(133) 评论(0) 推荐(0)
摘要: 1.提示为error C2440: “类型转换”: 无法从“void (__thiscall xx::* )(void)”转换为“cocos2d::SEL_CallFuncN” 提示前 调用语句为callfuncN_selector(GameMenu::menuEnter) menuEnter这个方... 阅读全文
posted @ 2014-06-02 12:14 yufenghou 阅读(824) 评论(0) 推荐(0)
摘要: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return UIInterfaceOrientationIsPortrait(interfaceOrie... 阅读全文
posted @ 2014-05-28 13:38 yufenghou 阅读(209) 评论(0) 推荐(0)
摘要: 将#include "Box2D.h" 换成#include "Box2D/Box2D.h" 阅读全文
posted @ 2014-05-20 09:31 yufenghou 阅读(145) 评论(0) 推荐(0)
摘要: #include "HelloWorldScene.h"USING_NS_CC;CCScene* HelloWorld::scene(){ CCScene *scene = CCScene::create(); HelloWorld *layer = HelloWorld::create... 阅读全文
posted @ 2014-05-19 06:26 yufenghou 阅读(479) 评论(0) 推荐(0)
摘要: // 在init这个函数当中做一些初始化的事情bool HelloWorld::init(){ ////////////////////////////// // 先构造父级对象 if ( !CCLayer::init() ) { return false; ... 阅读全文
posted @ 2014-04-21 18:26 yufenghou 阅读(139) 评论(0) 推荐(0)
摘要: CCSize size=CCDirector::sharedDirector()->getWinSize(); CCParticleSystem* particle=CCParticleSnow::create(); particle->setPosition(size.wid... 阅读全文
posted @ 2014-04-17 18:55 yufenghou 阅读(136) 评论(0) 推荐(0)
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 43 下一页