小编Jor*_*tle的帖子

以编程方式使用C,C++或Java获取Java和Flash的版本号

我想找到计算机上安装的当前Java版本的版本号,以及任何具有闪存的Web浏览器上安装的Flash的当前版本.有没有办法使用Java,C或C++来做到这一点?如果是这样,我应该研究哪个类/库?

c c++ java flash version

4
推荐指数
1
解决办法
2294
查看次数

如何使用android:onClick?

我是android编程的新手.你如何使用android:onClick?我在哪里放置我想要的方法?

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

<Button
        android:id="@+id/button1"
        android:layout_width="wrap_content"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:text="Button"
        android:onClick="doSomething"/>
<ImageView
    android:id="@+id/icon"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_weight="1"
    android:adjustViewBounds="true"
    android:src="@drawable/molecule" />
Run Code Online (Sandbox Code Playgroud)

我会把它放在调用这个布局的.java文件中吗?

android onclicklistener

1
推荐指数
1
解决办法
2721
查看次数

如何获取 tkinter Text 对象的内容

我正在尝试使用Pythontkinter.Text创建文本区域。这样,我想获取他们放入该文本区域的所有输入并将其显示在其上方的输入字段中。它给出一个错误,说它需要两个参数。

from Tkinter import *

def create_index():
        var = body.get(0)
        link.insert(10,var)
        file.close()

master = Tk()
Label(master, text="Link:").grid(row=0)
Label(master, text="Body:").grid(row=1)

link = Entry(master)
body = Text(master)

link.grid(row=0, column=1)
body.grid(row=1, column=1)
Button(master, text='Show', command=create_index).grid(row=3, column=1, sticky=W, pady=4)

mainloop()
Run Code Online (Sandbox Code Playgroud)

python tkinter python-2.7

1
推荐指数
1
解决办法
1万
查看次数

标签 统计

android ×1

c ×1

c++ ×1

flash ×1

java ×1

onclicklistener ×1

python ×1

python-2.7 ×1

tkinter ×1

version ×1